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 structure packing in c?

0 Answers  


What are reserved words?

0 Answers  


Which of the Following is not defined in string.h? A)strspn() B)strerror() C)memchr() D)strod()

2 Answers   Accenture, TCS,


why little endian and big endian came?y they using differently? y they not used commonly ?wt is application of little and big ?

1 Answers  


formula to convert 2500mmh2o into m3/hr

0 Answers  






Is int a keyword in c?

0 Answers  


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

0 Answers  


What is #include conio h?

0 Answers  


void main() {int a[5],i,b=16; for(i=0;i<5;i++) a[i]=2*i; f(a,5,b); for(i=0;i<5;i++) printf("\n %d",a[i]); printf("\n %d",b); } f(int *x,int n,int y) { int i; for(i=0;i<n;i++) *(x+i)+=2; y=y+2; }wat r the errors in the prg.and improvise the prg to get o/p.?

2 Answers   TCS,


what is the mean of c languages.

1 Answers   Polaris,


Differentiate between ordinary variable and pointer in c.

0 Answers  


Explain what does the function toupper() do?

0 Answers  


Categories