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 / sundar
the output is
a=100n(*p)=101n
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Why string is used in c?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Why void main is used in c?
What is mean by data types in c?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
Explain what is a const pointer?
Is null a keyword in c?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
What is return type in c?
What do you mean by invalid pointer arithmetic?
What are c header files?
What is the ANSI C Standard?
What is the data segment that is followed by c?
If null and 0 are equivalent as null pointer constants, which should I use?