Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are preprocessor directives in c?

1154


How can I access an I o board directly?

1123


general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only

1118


What are structural members?

1063


int i=10; printf("%d %d %d", i, i=20, i);

1693


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

1326


What are different types of pointers?

1105


Explain the meaning of keyword 'extern' in a function declaration.

1203


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2838


What are the types of i/o functions?

1416


Explain what is output redirection?

1242


What are nested functions in c?

1070


what is the significance of static storage class specifier?

2337


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

2464


How to implement a packet in C

2928