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
any "C" function by default returns an a) int value b) float value c) char value d) a & b
What are structure types in C?
What are inbuilt functions in c?
Is void a keyword in c?
What are runtime error?
what are # pragma staments?
What is abstract data structure in c?
What is a 'null pointer assignment' error?
What are the advantages of using linked list for tree construction?
Why do we need functions in c?
What is getch?
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
What is the difference between volatile and const volatile?
Why doesnt the call scanf work?
How to write a code for reverse of string without using string functions?