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 |
write a program to gat the digt sum of a number (et. 15= >1+5=6)
Explain what’s a signal? Explain what do I use signals for?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
what are two categories of clint-server application development ?
Can the size of an array be declared at runtime?
wat are the two methods for swapping two numbers without using temp variable??
Write a programe print the sum of series 0,1,2,.....10
How can I change their mode to binary?
What is the use of extern in c?
How arrays can be passed to a user defined function
What is the use of void pointer and null pointer in c language?
#include<stdio.h> void main() { char *str; long unsigned int add; str="Hello C"; add=&str[0]; printf("%c",add); } What is the output?