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 / sundar
the output is
a=100n(*p)=101n
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Differentiate between static and dynamic modeling.
Write a program to swap two numbers without using the third variable?
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
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
Explain the difference between malloc() and calloc() in c?
Difference between malloc() and calloc() function?
Explain how do you print an address?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
Explain enumerated types in c language?
Explain how can I avoid the abort, retry, fail messages?
Can you please explain the scope of static variables?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
Write a program of prime number using recursion.
How can you increase the size of a statically allocated array?
Explain how are portions of a program disabled in demo versions?