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 |
Explain the difference between call by value and call by reference in c language?
How do I create a directory? How do I remove a directory (and its contents)?
Why static variable is used in c?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
1.find the second maximum in an array? 2.how do you create hash table in c? 3.what is hash collision
Write a program using two-dimensional array that lists the odd numbers and even numbers separately in a 12 input values.
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
what is the program to display your name in any color?
Add 2 64 bit numbers on a 32 bit machine
3 Answers EMC, Hyderabad Central University, NetApp,
Explain logical errors? Compare with syntax errors.
write a program structure to find average of given number
write a function that accepts an integer/char array and an search item.If the search item is there in the array return position of array and value else return -1.without using other array,without sorting,not to use more than one loop?