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 / manoj
B)100,100
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is the use of c language in real life?
Is there any data type in c with variable size?
What is a program flowchart and explain how does it help in writing a program?
What is difference between main and void main?
What are pointers? What are stacks and queues?
Why does notstrcat(string, "!");Work?
Why shouldn’t I start variable names with underscores?
Can a pointer be static?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
Why pointers are used in c?
What does the error 'Null Pointer Assignment' mean and what causes this error?
What is a good way to implement complex numbers in c?
Explain high-order bytes.
What does & mean in scanf?
How do c compilers work?