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
How many types of operators are there in c?
What is wrong in this statement?
Define C in your own Language.
How can you increase the allowable number of simultaneously open files?
What is the size of structure in c?
Explain what are the standard predefined macros?
Why does the call char scanf work?
What does printf does?
What are the 4 types of programming language?
Explain the use of bit fieild.
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
Explain what is a static function?
Explain modulus operator. What are the restrictions of a modulus operator?
When should a far pointer be used?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?