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 / hima bindu sudhani
The answer is A)100, 101
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is strcmp in c?
What is uint8 in c?
develop algorithms to add polynomials (i) in one variable
If null and 0 are equivalent as null pointer constants, which should I use?
What is scope of variable in c?
Differentiate call by value and call by reference?
What is a pointer in c?
Are the expressions * ptr ++ and ++ * ptr same?
What's a good way to check for "close enough" floating-point equality?
write a program to copy the string using switch case?
When can a far pointer be used?
What are the characteristics of arrays in c?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
what are enumerations in C
What is volatile variable in c?