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
Write a program to check armstrong number in c?
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
What is spark map function?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
How can I do graphics in c?
Is there a built-in function in C that can be used for sorting data?
What is the method to save data in stack data structure type?
what value is returned to operating system after program execution?
why we wont use '&' sing in aceesing the string using scanf
How many levels of pointers have?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
How can a program be made to print the line number where an error occurs?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
What is a pointer and how it is initialized?
Is it better to bitshift a value than to multiply by 2?