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
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
What is return type in c?
What is the difference between memcpy and memmove?
Is c procedural or functional?
Can we use any name in place of argv and argc as command line arguments?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What are types of preprocessor in c?
What are the header files used in c language?
What are nested functions in c?
What does return 1 means in c?
What is calloc()?
Explain how do you convert strings to numbers in c?
How will you find a duplicate number in a array without negating the nos ?
Why c is called free form language?
using only #include