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 / sridevi.halli

answer is d)none of the above
bcoz in line p=&a it will gve error

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of operators are there in c?

622


What is wrong in this statement?

608


Define C in your own Language.

644


How can you increase the allowable number of simultaneously open files?

599


What is the size of structure in c?

705






Explain what are the standard predefined macros?

655


Why does the call char scanf work?

622


What does printf does?

752


What are the 4 types of programming language?

586


Explain the use of bit fieild.

717


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

1909


Explain what is a static function?

634


Explain modulus operator. What are the restrictions of a modulus operator?

602


When should a far pointer be used?

607


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

616