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

%d print the value for example
int x=2;
printf("x=%d",x);

output:

x=2

%*d print the value for example
int x=2;
printf("x=%*d",x);

output:

x= 2

the output two space(x=2) next the value will be display
(x=6) the output 6 space next the value will be display

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is 'bus error'?

1163


what are bit fields in c?

1729


Explain how do you sort filenames in a directory?

1047


What is the need of structure in c?

1127


How do I use strcmp?

1087


What is a example of a variable?

1032


What is a wrapper function in c?

1127


When would you use a pointer to a function?

1056


Explain data types & how many data types supported by c?

1090


Is calloc better than malloc?

1027


write a c program to find the sum of five entered numbers using an array named number

2147


Why is sprintf unsafe?

1087


How can I implement sets or arrays of bits?

1051


What does static variable mean in c?

1115


What are the benefits of organizational structure?

1031