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


Please Help Members By Posting Answers For Below Questions

Discuss the function of conditional operator, size of operator and comma operator with examples.

676


Explain can the sizeof operator be used to tell the size of an array passed to a function?

591


what is stack , heap ,code segment,and data segment

2214


what is the syallabus of computer science students in group- 1?

1836


Explain what is the purpose of "extern" keyword in a function declaration?

614






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?

1508


ATM machine and railway reservation class/object diagram

4798


Explain what is operator promotion?

631


what is the height of tree if leaf node is at level 3. please explain

1595


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

904


Explain what is the difference between text files and binary files?

610


What does #pragma once mean?

682


Explain the difference between malloc() and calloc() in c?

573


Are global variables static in c?

672


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

2552