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 / sundar

the output is

a=100n(*p)=101n

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain b+ tree?

1077


What is the best way of making my program efficient?

1040


How will you divide two numbers in a MACRO?

1141


What is formal argument?

1139


Explain how do you override a defined macro?

1081


Why string is used in c?

1010


Who developed c language and when?

1071


What are the differences between new and malloc in C?

1151


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

1006


What is the purpose of sprintf?

1141


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3523


Explain built-in function?

1146


What is the code in while loop that returns the output of given code?

1999


Explain what is the benefit of using const for declaring constants?

1040


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1133