Skip to main content

Posts

Featured

Variable Declaration In C

Variables in C   How to declare the variable inside the C program?   Video : https://goo.gl/lSzCth Example:- #include<stdio.h> int main() {      int a;                            //variable declaration      int b=2;                       // variable initialization   //how to print these variables    printf("variable a = %d",a);    printf("variable b = %d",b); return 0; }  What is variable declaration? Ans: Only declaring the variable without initializing it in a program is called as variable declaration.           OR          Only declaring the variable without assigning the value ( like "int a" <=Declaration ) is called as variable declaration. What is variable initialization? Ans: The variable declared with initializing the value is called variable initialization. OR          The variable declared assigning value to it (like "int b=2" <=Initialization) is called variable ini

Latest posts

First C program

Syntax of C-program

Basics of C