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


Please Help Members By Posting Answers For Below Questions

given post order,in order construct the corresponding binary tree

2532


What are register variables in c?

791


What is structure packing in c?

815


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

869


What is your stream meaning?

846


What are run-time errors?

811


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

895


explain what is an endless loop?

817


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

894


Which is best linux os?

761


What is size of union in c?

752


Explain how can I read and write comma-delimited text?

928


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?

2274


Why is c fast?

788


Are there any problems with performing mathematical operations on different variable types?

791