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
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.
When do we get logical errors?
Write a program to swap two numbers without using the third variable?
Where can I get an ansi-compatible lint?
How can I find out the size of a file, prior to reading it in?
What is the difference between a free-standing and a hosted environment?
What is scanf () in c?
Write a program to check whether a number is prime or not using c?
Linked lists -- can you tell me how to check whether a linked list is circular?
What is %lu in c?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
What is 1f in c?
What is pointer to pointer in c?
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
What are pointers really good for, anyway?