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 / jitendra kumar arya

(d),because n treat as a chracter.
ans is 100n ,101n

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

1683


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

1567


What is else if ladder?

696


Why c is called a middle level language?

714


Who invented b language?

1031






Can we add pointers together?

712


What is a dynamic array in c?

668


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

778


Explain what is the concatenation operator?

702


What are called c variables?

658


What is the purpose of the preprocessor directive error?

794


How can type-insensitive macros be created?

812


How are 16- and 32-bit numbers stored?

838


Why do we use int main?

712


how do you programme Carrier Sense Multiple Access

1601