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
What is the use of pragma in embedded c?
When c language was developed?
Explain why c is faster than c++?
Explain what is a const pointer?
What is a scope resolution operator in c?
What is the size of enum in c?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
How can you access memory located at a certain address?
What are the advantages of union?
Are the variables argc and argv are always local to main?
What is the use of a semicolon (;) at the end of every program statement?
What are the uses of null pointers?
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
What is .obj file in c?