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

How many main () function we can have in a project?

0 Answers  


How do you declare a variable that will hold string values?

0 Answers  


How can I trap or ignore keyboard interrupts like control-c?

0 Answers  


A program to write a number of letters and numbers, such as counting and display

0 Answers  


main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(ā€œ%dā€,x); }

8 Answers   Vector,






What is extern c used for?

0 Answers  


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

0 Answers  


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

10 Answers   Wipro,


Why string is used in c?

0 Answers  


write a method for an array in which it can display the largest n next largest value.

1 Answers   Value Labs,


Should I learn c before c++?

0 Answers  


I heard that you have to include stdio.h before calling printf. Why?

0 Answers  


Categories