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 |
What is structure packing in c?
What are reserved words?
Which of the Following is not defined in string.h? A)strspn() B)strerror() C)memchr() D)strod()
why little endian and big endian came?y they using differently? y they not used commonly ?wt is application of little and big ?
formula to convert 2500mmh2o into m3/hr
Is int a keyword in c?
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
What is #include conio h?
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.?
what is the mean of c languages.
Differentiate between ordinary variable and pointer in c.
Explain what does the function toupper() do?