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
given post order,in order construct the corresponding binary tree
What are register variables in c?
What is structure packing in c?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
What is your stream meaning?
What are run-time errors?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
explain what is an endless loop?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
Which is best linux os?
What is size of union in c?
Explain how can I read and write comma-delimited text?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
Why is c fast?
Are there any problems with performing mathematical operations on different variable types?