what is the answer for it
main()
{
int i;
clrscr();
printf("%d",&i)+1;
scanf("%d",i)-1;
}
Answer Posted / deepshree sinha
any garbage value of i because the value of i is not
initialised.
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Discuss the function of conditional operator, size of operator and comma operator with examples.
Explain can the sizeof operator be used to tell the size of an array passed to a function?
what is stack , heap ,code segment,and data segment
what is the syallabus of computer science students in group- 1?
Explain what is the purpose of "extern" keyword in a function declaration?
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
ATM machine and railway reservation class/object diagram
Explain what is operator promotion?
what is the height of tree if leaf node is at level 3. please explain
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
Explain what is the difference between text files and binary files?
What does #pragma once mean?
Explain the difference between malloc() and calloc() in c?
Are global variables static in c?
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