char ch=10;printf("%d",ch);what is the output
Answer Posted / jj
answer is 49,a character constant can be one character
so ch=10----> here 1 is taken as character,in print
statement it is conv to ascii
| Is This Answer Correct ? | 0 Yes | 8 No |
Post New Answer View All Answers
how to find binary of number?
List the difference between a While & Do While loops?
What does the c in ctime mean?
How can I direct output to the printer?
Should a function contain a return statement if it does not return a value?
Explain how do you sort filenames in a directory?
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
Write the control statements in C language
Can stdout be forced to print somewhere other than the screen?
provide an example of the Group by clause, when would you use this clause
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
any "C" function by default returns an a) int value b) float value c) char value d) a & b
Can you please explain the difference between strcpy() and memcpy() function?
Which of these functions is safer to use : fgets(), gets()? Why?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures