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
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
Explain the advantages of using macro in c language?
Explain the use of #pragma exit?
Explain how can you avoid including a header more than once?
What are Macros? What are its advantages and disadvantages?
What is sizeof int in c?
What is the use of bitwise operator?
I have a varargs function which accepts a float parameter?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
Explain how can I convert a string to a number?
What is strcmp in c?
How can I open files mentioned on the command line, and parse option flags?
Explain the difference between ++u and u++?
What is the difference between void main and main in c?
What is define c?