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 |
How many main () function we can have in a project?
How do you declare a variable that will hold string values?
How can I trap or ignore keyboard interrupts like control-c?
A program to write a number of letters and numbers, such as counting and display
main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(ā%dā,x); }
What is extern c used for?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15
Why string is used in c?
write a method for an array in which it can display the largest n next largest value.
Should I learn c before c++?
I heard that you have to include stdio.h before calling printf. Why?