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

FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

1733


When do we get logical errors?

1106


Write a program to swap two numbers without using the third variable?

1049


Where can I get an ansi-compatible lint?

1127


How can I find out the size of a file, prior to reading it in?

1156


What is the difference between a free-standing and a hosted environment?

1131


What is scanf () in c?

1110


Write a program to check whether a number is prime or not using c?

1039


Linked lists -- can you tell me how to check whether a linked list is circular?

1071


What is %lu in c?

1239


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

2139


What is 1f in c?

2631


What is pointer to pointer in c?

1098


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

1214


What are pointers really good for, anyway?

1049