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 / madhu
D) NONE OF THE ABOVE
COZ
ANS IS A=101n (*p)=101n
to get this *p should be an constant pointer
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is file in c preprocessor?
How can I get the current date or time of day in a c program?
How many bytes are occupied by near, far and huge pointers (dos)?
What are the loops in c?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
What is a dynamic array in c?
What is floating point constants?
how to write optimum code to divide a 50 digit number with a 25 digit number??
Are comments included during the compilation stage and placed in the EXE file as well?
is it possible to create your own header files?
What is the difference between arrays and pointers?
What is 02d in c?
What is malloc return c?
Is fortran still used in 2018?
I need previous papers of CSC.......plz help out by posting them.......