How to add two numbers without using semicolon at runtime

Answers were Sorted based on User's Feedback



How to add two numbers without using semicolon at runtime..

Answer / myfriend_shankar

#include<stdio.h>
#include<conio.h>
void main()
{
if(printf("9+1= %d ",9+1))
{}
}

Is This Answer Correct ?    15 Yes 4 No

How to add two numbers without using semicolon at runtime..

Answer / snehal sawant

#include<stdio.h>
void main()
{
while(!printf("11+20= %d ",11+20))
{
}
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

difference between function & structure

9 Answers   Verizon,


how to find out the union of two character arrays?

2 Answers  


code for find determinent of amatrix

0 Answers  


What is difference between class and structure?

0 Answers  


#include<stdio.h> #include<conio.h> void main() {clrscr(); char another='y'; int num; for(;another=='y';) { printf("Enter a number"); scanf("%d",&num); printf("squre of %d is %d",num,num*num); printf("\nwant to enter another number y/n"); scanf("%c",&another); } getch(); } the above code runs only one time.on entering 'y' the screen disappeares.what can i do?

3 Answers  


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

0 Answers  


What is the use of in c?

0 Answers  


what is difference between userlevel threads and kernel level threads ?what are the trades offs between these two approaches ? what approach is most frequently used and why ?

1 Answers  


Find the middle node in the linked list?? (Note:Do not use for loop, count and count/2)

6 Answers   Subex,


Will Macros support multiple arguments ?

7 Answers   Oracle,


Difference between constant pointer and pointer to a constant.

0 Answers   Huawei,


Why header files are used?

0 Answers  


Categories