Join Regular Classroom : Visit ClassroomTech

Programming in C

Variable declaration in C

Variable declaration in C: In C programming we need to declare variable which we will use throughout the code. Variable declaration means declaring the data types of the variable and the name of the variable. Through variable declaration we make clear that how much space that variable will require. C programming doesn’t support dynamic variable …

Variable declaration in C Read More »

Format Specifier in C

Format specifier in C : The Format specifier is a string used in the formatted input and output functions. With the help of format specifiers the compiler understand that what is the data type of the variable while taking input through scanf() function and printing the output through printf() function. The format string always starts …

Format Specifier in C Read More »

scanf() Statement

“scanf()” statement: “scanf()” is a C library function from the header file “stdio.h”(stdio – standard input output), which allows the programmer to accept input from standard input devices(Keyboard). The taken input is stored in a variable. Example: C C #include<stdio.h> int main() { int a; printf(“Enter the value of a:”); scanf(“%d”,&a);// accepts the value of …

scanf() Statement Read More »

printf() Statement

“printf()” statement : “printf()” is a C library function from the header file “stdio.h”(stdio – standard input output), which sends the console output to stdout. Example : C C #include<stdio.h> int main() { printf(“Hello!”); // this printf function will print “Hello!” as the output. return 0; } Output Output Hello! “printf()” returns the number of …

printf() Statement Read More »

Type casting in C

Type casting In c, it permits the mixing of constants and variables of different data types in an expression. Typecasting is defined as the conversion of the datatype of one variable to another data type. There are two ways of typecasting in c –                   1. Implicit …

Type casting in C Read More »

Data types in C

C language is rich in its data types. Storage representations and machine instructions to handle constants differs from machine to machine. The variety of data types available, allow the programmers to select the type appropriate to the needs of the application, as well as the machine. In a simple way, we can say that the …

Data types in C Read More »

Operators in C

C language has a big set of built-in operators. An operator is a symbol to perform some mathematical or logical operations with data and variables. Operators can be classified into the following types: Arithmetic Operators Logical Operators Relational Operators Assignments Operators Bitwise Operators Arithmetic Operators : Arithmetic operators are used for mathematical operations in c. …

Operators in C Read More »

Header file in C

What is header file ? In C programming language there are many standard pre-defined functions, that we can directly include in our code to make programming easy. There are many standard header file that is ready to use, or we can make our own header file(user defined header file). We have to include the header …

Header file in C Read More »

Unary Operator in C

What is Unary Operator in c ? unary operators are used for produce a new value. This operator require only one operand. Types of Unary operators:  Unary minus(-)  Increment (++)  Decrement (–)  NOT(!)  Address operator(&)  sizeof() Unary Minus (-) : It is a unary operator which is used for changing the sign of a variable.A …

Unary Operator in C Read More »