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 / sridevi.halli
answer is d)none of the above
bcoz in line p=&a it will gve error
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain union. What are its advantages?
Can main () be called recursively?
How do you define CONSTANT in C?
Explain what is a pragma?
Place the #include statement must be written in the program?
Explain data types & how many data types supported by c?
Write a Program to accept different goods with the number, price and date of purchase and display them
What does != Mean in c?
Explain how does free() know explain how much memory to release?
How do you construct an increment statement or decrement statement in C?
What is queue in c?
How a string is stored in c?
How many keywords (reserve words) are in c?
Can a variable be both const and volatile?
What is include directive in c?