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

Answer Posted / meruva

%d means it prints only given value,
and %*d means it prints garbage value.
for eg: //it prints i value is=10
int i=10;
printf("i value is=%d",i);

//it prints garbage value
int i=10;
printf("i value is=%*d",i);

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the difference between far and near ?

1112


What is difference between class and structure?

1117


What is the most efficient way to count the number of bits which are set in an integer?

1067


What is call by reference in functions?

1457


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2698


What are terms in math?

1052


What are c identifiers?

1098


What is difference between main and void main?

1215


What is static memory allocation? Explain

1105


Explain the properties of union. What is the size of a union variable

1190


in iso what are the common technological language?

2117


What is difference between structure and union?

1135


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

1079


Did c have any year 2000 problems?

1112


What does static variable mean in c?

1113