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 will be maximum number of comparisons when number of elements are given?

1888


Is c dynamically typed?

1133


What is the value of uninitialized variable in c?

1018


What is function pointer c?

1087


What are the header files used in c language?

1031


What is an identifier?

1011


Which built-in library function can be used to match a patter from the string?

1288


What is the difference between malloc() and calloc() function in c language?

1056


What are the 32 keywords in c?

1076


Can we use any name in place of argv and argc as command line arguments?

1057


What is equivalent to ++i+++j?

1075


Explain how can you be sure that a program follows the ansi c standard?

1448


Which header file should you include if you are to develop a function which can accept variable number of arguments?

1373


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

1041


Can you pass an entire structure to functions?

1102