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
Is c is a low level language?
What are the functions to open and close the file in c language?
What is wrong in this statement?
How many header files are in c?
What is 2c dna?
Where are some collections of useful code fragments and examples?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
How can I split up a string into whitespace-separated fields?
What library is sizeof in c?
What is meant by keywords in c?
How can you convert integers to binary or hexadecimal?
Write a code on reverse string and its complexity.
What is #define?
What is bubble sort technique in c?
Under what circumstances does a name clash occur?