What is the difference between declaring and initialization of variable?
https://todaygyan3.blogspot.com
What is variable declaration give one example of it?
- Compile Time Initialization or Static Initialization.
- Run Time Initialization or Dynamic Initialization.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int num=200;
printf("%d",the value of num);
getch();
}
Run Time Initialization or Dynamic Initialization
To assign value at run time from user is called run time initialization. For this purpose we use scanf() function in C language. For example-
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int num;
scanf("%d",&num);
printf("the value of num=%d,num);
getch();
}
What is the difference between declaring and initializing variable?
https://todaygyan3.blogspot.com
How many types of casting are there in Java?
What is the difference between explicit and implicit casting in Java?
What are implicit and explicit casting explain with the help of example Java?
I hope you know What is the difference between declaring and initializing variable?/ What is variable declaration give one example of it? Must have understood very well. If you have any doubts in this blog, then you can write for it in the below comment box. There is one more request from you that you must tell your friends about this blog and share it on as many social media accounts as Facebook, What's app or others. What is the difference between declaring and initializing variable?
https://todaygyan3.blogspot.com