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

to find the closest pair

0 Answers   Infosys,


What is the scope of static variable in c?

0 Answers  


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

0 Answers  


Whether there can be main inside another main?If so how does it work?

14 Answers   Sail, Wipro,


what do you mean by defining a variable in our c code?

2 Answers  


a=0; b=(a=0)?2:3; a) What will be the value of b? why b) If in 1st stmt a=0 is replaced by -1, b=? c) If in second stmt a=0 is replaced by -1, b=?

6 Answers   Geometric Software,


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

0 Answers   Wilco,


What is the difference between a structure and a union?

2 Answers  


write a program to search for an element in a given array. If the array was found then display its position otherwise display appropriate message in c language

18 Answers   IT Park, TCS,


Does * p ++ increment p or what it points to?

0 Answers  


how to do in place reversal of a linked list(singly or doubly)?

3 Answers  


How do I use strcmp?

0 Answers  


Categories