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 / traphunter
a=101n(*p)=101n
answer c)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
#include
What's the right way to use errno?
What is structure padding and packing in c?
What is a pointer and how it is initialized?
How can you invoke another program from within a C program?
Explain what are header files and explain what are its uses in c programming?
What is array within structure?
How does placing some code lines between the comment symbol help in debugging the code?
Can a void pointer point to a function?
What is switch in c?
What are dangling pointers in c?
What is difference between array and pointer in c?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
what value is returned to operating system after program execution?