study the code:
#include<stdio.h>
void main()
{
const int a=100;
int *p;
p=&a;
(*p)++;
printf("a=%dn(*p)=%dn",a,*p);
}
What is printed?
A)100,101 B)100,100 C)101,101 D)None of the
above
Answer Posted / hima bindu sudhani
The answer is A)100, 101
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
How can you determine the maximum value that a numeric variable can hold?
Why are all header files not declared in every c program?
What is the use of typedef in c?
What is wrong with this program statement? void = 10;
What does 4d mean in c?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
Can you assign a different address to an array tag?
What is exit() function?
Explain what is a pragma?
What is the difference between far and near ?
Explain how can I prevent another program from modifying part of a file that I am modifying?
Why is #define used?
Are c and c++ the same?
Define the scope of static variables.
Explain how do you convert strings to numbers in c?