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 / azad sable,chiplun.

In first case i.e. '%d' the '%' indicates that the
conversion specification follows. And 'd' known as data
type charactor indicates that the no. to be read is in
intiger mode.
* is an input field which specifie field width.
example
scanf("%d%*d%d",&a,&b);
will assign the data 123 456 789 as follows.123 to a 456
skipp because of * 789 to b.

Is This Answer Correct ?    9 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

any "C" function by default returns an a) int value b) float value c) char value d) a & b

1138


What are structure types in C?

1157


What are inbuilt functions in c?

1084


Is void a keyword in c?

1059


What are runtime error?

1181


what are # pragma staments?

2083


What is abstract data structure in c?

1115


What is a 'null pointer assignment' error?

1252


What are the advantages of using linked list for tree construction?

1150


Why do we need functions in c?

1085


What is getch?

1282


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

2047


What is the difference between volatile and const volatile?

1053


Why doesnt the call scanf work?

1248


How to write a code for reverse of string without using string functions?

2207