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 pointer?
what is the value of b if a=5; b=++a + ++a
31 Answers Infosys, TCS, Tech Mahindra,
Explain a file operation in C with an example.
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
What is meant by recursion?
write a c program to find biggest of 3 number without relational operator?
What is #pragma statements?
Explain what will the preprocessor do for a program?
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
Can we write a program without main() function?
main() { int a = 65; printf(“%d %o %x”,a,a,a); } Output 65 101 41 Please explain me.How it is coming like that?
Write code for atoi(x) where x is hexadecimal string.