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
How can a program be made to print the name of a source file where an error occurs?
What is wrong in this statement? scanf(ā%dā,whatnumber);
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
while initialization of array why we use a[][2] why not a[2][]...?
Is c is a middle level language?
Why do we need volatile in c?
What are terms in math?
What is meant by high-order and low-order bytes?
What is the use of pointers in C?
Differentiate between a structure and a union.
Why we not create function inside function.
Explain what is wrong with this program statement?
What is the use of void pointer and null pointer in c language?
What is an identifier?
How many data structures are there in c?