In scanf h is used for
Answers were Sorted based on User's Feedback
Answer / allen
I had the same question, and after some research, i found
that it is a type modifier. for example
%d -> int
%hd -> short int
%ld -> long int
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / vineet saurabh
In Dennnis Ritchie's "The C Programming Language 2nd ed" PN-244
h is a length modifier.
..... 'h' indicates that the corresponding argument is to be printed as ashort or unsigned short
Dont use 'H' instead.
| Is This Answer Correct ? | 3 Yes | 0 No |
what is the hexidecimal number of 4100?
Why main is not a keyword in c?
What is d scanf?
do u print this format '(((())))'. This brackets is based on user input like 4 or 5 or 6,without using any loop's?
what are the advantages & disadvantages of unions?
What is array of structure in c?
What is C language Terminator?
What is the real time usage volatile?
Input is "Jack and jill went up a hill" To print output is 1-letter word(s)-1 2-letter words-1 3-letter words-1 4-letter words-4
Is there a way to jump out of a function or functions?
Distinguish between actual and formal arguments.
What does 3 periods mean in texting?