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


Please Help Members By Posting Answers For Below Questions

What is the size of empty structure in c?

595


What is malloc and calloc?

578


How can I find out if there are characters available for reading?

649


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

648


What is the function of volatile in c language?

670






What is the return type of sizeof?

598


what are the facialities provided by you after the selection of the student.

1663


Are pointers really faster than arrays?

569


What does char * * argv mean in c?

626


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

715


How do you construct an increment statement or decrement statement in C?

747


What is array within structure?

589


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

2194


What is the difference between a function and a method in c?

563


What is a buffer in c?

578