what will be the output:
main(){char ch;int a=10;printf("%d",ch);}
Answer Posted / sirajuddin
variable ch is of character type and nothing is assigned
to it where as 'a' is of interger type.
In the printf statement we are placing variable 'ch' along
with %d which will display a garbage value.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Differentiate between functions getch() and getche().
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
Can i use “int” data type to store the value 32768? Why?
What is strcmp in c?
Write a C program to count the number of email on text
write an algorithm to display a square matrix.
When is the “void” keyword used in a function?
When we use void main and int main?
What will be your course of action for a push operation?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
find the sum of two matrices and WAP for it.
What are the restrictions of a modulus operator?
Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80
Write a program which returns the first non repetitive character in the string?
Explain a file operation in C with an example.