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 / manoj
B)100,100
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
How do I copy files?
Here is a neat trick for checking whether two strings are equal
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
What is the use of putchar function?
Can we compile a program without main() function?
Explain b+ tree?
Which one would you prefer - a macro or a function?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
Why is a semicolon (;) put at the end of every program statement?
Explain the Difference between the New and Malloc keyword.
In c programming language, how many parameters can be passed to a function ?
What is a macro in c preprocessor?
What is a keyword?
Is it better to use malloc() or calloc()?