Answer Posted / anandi
The size of integer variable is 2 bytes.
Eg:
if u declare like,
int a;
the compiler will allocate the size of the variable a,
to 2 bytes bcoz it is an int variable.
If u want to know the size of any other
variables,structures,etc. use the sizeof() function.
Eg:
int a;
sizeof(a);
this will print 2 which is the size of the int datatype.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What does printf does?
What are the various types of control structures in programming?
Explain what happens if you free a pointer twice?
Write a program to generate random numbers in c?
Difference between Function to pointer and pointer to function
Explain what is wrong with this statement? Myname = ?robin?;
write a c program to calculate sum of digits till it reduces to a single digit using recursion
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
explain what are pointers?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
What is the role of && operator in a program code?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
How can a process change an environment variable in its caller?
How does normalization of huge pointer works?