In scanf h is used for

Answers were Sorted based on User's Feedback



In scanf h is used for..

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

In scanf h is used for..

Answer / guest

I Guess short int

Is This Answer Correct ?    7 Yes 2 No

In scanf h is used for..

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

In scanf h is used for..

Answer / anitha

For hexa decimal numbers

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More C Interview Questions

what is pointer?

4 Answers  


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.

0 Answers   Amdocs,


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

0 Answers  


What is meant by recursion?

0 Answers   ADP,






write a c program to find biggest of 3 number without relational operator?

12 Answers   TCS, Wipro,


What is #pragma statements?

0 Answers  


Explain what will the preprocessor do for a program?

0 Answers  


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

0 Answers  


Can we write a program without main() function?

9 Answers  


main() { int a = 65; printf(“%d %o %x”,a,a,a); } Output 65 101 41 Please explain me.How it is coming like that?

3 Answers   Excel,


Write code for atoi(x) where x is hexadecimal string.

5 Answers   Adobe,


Categories