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 / santhoo035
d)None of the above
It will give compliation error at the line p=&a,pointer to
integer cannot assign to const int
| Is This Answer Correct ? | 18 Yes | 1 No |
Post New Answer View All Answers
Explain high-order and low-order bytes.
How do I round numbers?
When is a “switch” statement preferable over an “if” statement?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
Write a code of a general series where the next element is the sum of last k terms.
What is the Purpose of 'extern' keyword in a function declaration?
What does the message "automatic aggregate intialization is an ansi feature" mean?
Is c language still used?
What are keywords c?
how we can make 3d venturing graphics on outer interface
What are the features of the c language?
Explain the difference between structs and unions in c?
What is a nested formula?
What is the maximum length of an identifier?
What is the use of c language in real life?