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
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.
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
What is else if ladder?
Why c is called a middle level language?
Who invented b language?
Can we add pointers together?
What is a dynamic array in c?
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
Explain what is the concatenation operator?
What are called c variables?
What is the purpose of the preprocessor directive error?
How can type-insensitive macros be created?
How are 16- and 32-bit numbers stored?
Why do we use int main?
how do you programme Carrier Sense Multiple Access