In scanf h is used for

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between void main and main in c?

626


What are examples of structures?

597


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

648


Write a program to print numbers from 1 to 100 without using loop in c?

642


What are high level languages like C and FORTRAN also known as?

687






What are predefined functions in c?

569


What is the purpose of main() function?

660


How do we print only part of a string in c?

587


What is typedf?

671


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

1629


Explain what is a static function?

633


What is a pointer value and address in c?

636


How many bytes is a struct in c?

726


In a switch statement, what will happen if a break statement is omitted?

604


What does stand for?

599