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
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
What’s the special use of UNIONS?
What are structure types in C?
How do you sort filenames in a directory?
Explain is it better to bitshift a value than to multiply by 2?
Why isn't any of this standardized in c? Any real program has to do some of these things.
What is the difference between NULL and NUL?
What is spaghetti programming?
Does * p ++ increment p or what it points to?
What are the advantages and disadvantages of a heap?
What is c language in simple words?
Why doesnt that code work?
Why is c used in embedded systems?
Why do we use main function?
Define the scope of static variables.