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 / divakar
ouput will be c)a=101 (*p)=101
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is the size of empty structure in c?
What is malloc and calloc?
How can I find out if there are characters available for reading?
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
What is the function of volatile in c language?
What is the return type of sizeof?
what are the facialities provided by you after the selection of the student.
Are pointers really faster than arrays?
What does char * * argv mean in c?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
How do you construct an increment statement or decrement statement in C?
What is array within structure?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
What is the difference between a function and a method in c?
What is a buffer in c?