char ch=10;printf("%d",ch);what is the output

Answer Posted / vaibhav

it prints the ascii value of 10. inthese case ineger 10
will occupy only 1 byte.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does free set pointer to null?

565


Explain how do you determine a file’s attributes?

595


Explain what are the standard predefined macros?

654


What is echo in c programming?

560


What is the difference between ++a and a++?

698






What is 1f in c?

1840


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

600


What are the 4 data types?

603


The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.

1636


What are bitwise shift operators in c programming?

649


Can you think of a logic behind the game minesweeper.

2011


Explain logical errors? Compare with syntax errors.

632


Why void is used in c?

567


what is different between auto and local static? why should we use local static?

645


What is the difference between single charater constant and string constant?

625