Variables in c
Welcome to c programming learning
After the data types main thing is to know the variables. That are not to be predefined keywords like return,if .... etc.
Rules to be a variable is-----
1.It may contain letters, numbers, underscore (_).
2. It must not contain any other sign marks like ;,:,-,+.
3.variable is not to be a keyword.
Example:
int a;
Here int is data type, a is variable.
int _3a;
This is valid one.
int 3_a;
This is also valid
Identifier:
Identifier is also like as variable.
int a; this identifier. Identifier must contain data type followed by variable.
Example:
int a;
And then next topic is operators.....
Connect next post to learn operators...
.
Thank you 😊
A small task for you all.... That is please comment output of the below program
#include<studio.h>
void main()
{
int a=054;
printf("%d",a);
}
What is output of this code..........?
A small task for you all.... That is please comment output of the below program
#include<studio.h>
void main()
{
int a=054;
printf("%d",a);
}
What is output of this code..........?
Comments
Post a Comment