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 / sathya.r
Ans: 100,100
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Is array name a pointer?
What is the use of in c?
All technical questions
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
What is the difference between far and near ?
How can I call a function with an argument list built up at run time?
How can you return multiple values from a function?
How can I read a binary data file properly?
What are multidimensional arrays?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
What is I ++ in c programming?
Between macros and functions,which is better to use and why?
What is indirection?
When the macros gets expanded?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)