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...

what is the difference between %d and %*d in c languaga?

Answer Posted / sivakumar

anand and manini your expectations are wrong. because %d
give the original value of the variable and %*d give the
address of the variable.
eg:-
int a=10,b=20;
printf("%d%d",a,b);
printf("%*d%*d",a,b);

result is 10 20 1775 1775
here 1775 is the starting address of the memory allocation
for the integer.a and b having same address because of
contagious memory allocation.

Is This Answer Correct ?    35 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is derived datatype in c?

1099


What is the difference between struct and typedef struct in c?

1128


code for find determinent of amatrix

1972


can we change the default calling convention in c if yes than how.........?

2538


Is boolean a datatype in c?

1071


Explain what is the purpose of "extern" keyword in a function declaration?

1075


What is a built-in function in C?

1608


how many errors in c explain deply

2093


What are the valid places to have keyword “break”?

1091


What is 2c dna?

1083


What is data type long in c?

1078


What is "Hungarian Notation"?

1119


What are the uses of null pointers?

1129


What is malloc calloc and realloc in c?

1338


what do you mean by enumeration constant?

1015