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 / biranchi ranjan parida

none of the above
pointer value of address increases it cant store its
original value

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain two-dimensional array.

631


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

679


What is the difference between memcpy and memmove?

605


How do you override a defined macro?

702


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

1591






What are lookup tables in c?

550


What is default value of global variable in c?

564


Differentiate between a structure and a union.

768


How can I sort a linked list?

635


Differentiate between full, complete & perfect binary trees.

673


How do you print an address?

748


Differentiate between ordinary variable and pointer in c.

618


Is c procedural or object oriented?

580


Whats s or c mean?

593


What does struct node * mean?

602