Skip to main content

Posts

Data Types in C

DATA TYPE IN C In this post, We will discuss data type in c programming. In C programming language we use variable to store a value for some computation, In C programming every variable has a data type that determines which type of data a variable will store. In this particular section, we will only discuss data types which are frequently used in competitive programming. Basic Data Types in C Integer Types Long Type Long Long Type Floating-point Types Double Type Char Type Integer Data Type in C it has 2-byte storage   Long Data Type in C it has 4-byte storage   Long Long Data Type in C it has 8-byte storage   Floating-point DataTypes C It has a 4-byte storage size and  Precision value is up to 6 decimal place Double Data Type in C It has an 8-byte storage size and  Precision value is up to 15 decimal place Char Data Type in C it has 1-byte storage   Please write comments if you find anything incorrect, ...

Konkan Railway Corporation Limited: KRCL

Konkan Railway Corporation Limited: KRCL Company Name         :  Konkan Railway Corporation Limited Post Name                       :   Trackman, Assistant Pointsman State                            :  Maharashtra, Goa, Karnataka Salary                           :  Level 01 of 7th CPC Pay Matrix Number of Vacancy   :  87 Eligibility                     :  Passed 10th class Last Date to Apply     :  16-09-2018 Application Details    :  Notification Apply Online              :  Apply Here Please write comments if you find anything incorrect, or you want to share m...

Public Service Commission, West Bengal: PSCWB

Public Service Commission, West Bengal: PSCWB Company Name         :  Public Service Commission, West Bengal Post Name                       :   Sub-Inspector State                            :  West Bengal Salary                           :  Rs. 5,400-25,200 Number of Vacancy   :  957 Eligibility                     :  Passed 10th class Last Date to Apply     :  18-09-2018 Application Details    :  Notification Apply Online              :  Apply Here Please write comments if you find anything incorrect, or you want to share more information about the topic disc...

Hello World C Problem

Hello World C Problem In this post, we will give some problems which are based on our Hello World Program in C  post. Please try to solve these problems by yourself before googling or looking at our solutions. Write a C program that prints your name           Output :            Name: Your Name          Solution     2. Write a C program that prints your name, school/college name, branch           Output:           Name: Your Name           School/College Name: Your School/College Name           Branch: Your Branch           Solution Note: For newline you can you can '\n' .    Example: printf("Hello World\n")

Hello World in c

FIRST PROGRAM IN C In this tutorial, We will write our first C program and understand the program structure in c. We will also see how to compile and run a C program. Introduction In this section, we will write our first program that will print  Hello World  on the terminal. Create File/Open Editor Create a file with name hello_world.c . Note that you can keep the name of file anything, but it is best practice to keep the name that related to the content of the file. C program file extension is .c  means you can replace hello_world  with any string but .c is compulsory.  Write Hello World in C Type below code in your hello_world.c file #include <stdio.h> int main () { printf ( "Hello World" ); return 0 ; } How C Program Work   #include <stdio.h>:  This is a preprocessor command which tells the compiler to include the contents of stdio.h file in the program. stdio.h file contains functions such as ...

How to Compile and Run a C Program on Ubuntu Linux

How to Compile and Run a C Program on Ubuntu Linux In this post, we will learn how to set up an environment to compile and execute a c program on Ubuntu. Introduction In order to compile and execute a C program on Ubuntu, you need the following software GNU Compiler Collection (GCC)  Editor GNU Compiler Collection (GCC)  The good news is that the GNU Compiler Collection (GCC)  by default installed on your system you test via the following guideline. Search for the terminal tool application in dash tool. Click once on the icon to open dash tool Dash tool located on the left-top corner of your system. Search word terminal in dash tool Open terminal. Click on the terminal icon in order to open it. this will open terminal something like below.  Check the GCC installation. type gcc --help  on the terminal and hit the enter key    this will display all available command in GCC. Editor You also ...

Encryption and Decryption

ENCRYPTION AND DECRYPTION Encryption :  It is a way to transform information to make it unreadable for unauthorized use Decryption : It is a way to transform unreadable encrypted data back into readable Key: It is a secret string There is two type of key Private Key Public Key Private Key : With private key cryptography, both communicating parties, use the same key to encrypt and decrypt the messages Private Key Algorithm AES DES DES3 Public Key : With public key cryptography, we use two key(public key, private key) for communicating over the network. We share public to other parties while private key keep secret by one party. The public and the private keys are cryptographic inverses of each other; what one key encrypts, the other key will decrypt. Example: Suppose A want to send a message to B. A will encrypt the message with his private key and share his public key with B. B can decrypt the message with the public key of A. Public Key Algorithm RSA ...