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 / venkataramani kumar.t.b.
The Answer is C) a=101 and (*p)=101.
Since the variable is not directly accessed and it
increments thru' the pointer, so the answer is valid
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
Write a program to reverse a given number in c?
Can one function call another?
What does typedef struct mean?
Are local variables initialized to zero by default in c?
What are the different types of control structures in programming?
what is bit rate & baud rate? plz give wave forms
What's a good way to check for "close enough" floating-point equality?
Differentiate between full, complete & perfect binary trees.
Why is event driven programming or procedural programming, better within specific scenario?
Which driver is a pure java driver
Explain what are multibyte characters?
What is a pragma?
What is page thrashing?
State the difference between x3 and x[3].