How to add two numbers without using semicolon n c????

Answers were Sorted based on User's Feedback



How to add two numbers without using semicolon n c????..

Answer / sorab aggarwal

#include<conio.h>
#include<stdio.h>
void main()
{
if(printf("%d",5+6))
{}
getch();
}

Is This Answer Correct ?    27 Yes 8 No

How to add two numbers without using semicolon n c????..

Answer / ashish lamse

#include<iostream.h>
#include<stdio.h>
#include<conio.h>
void main()
{
if(cout<<"add of two no="<<10+20)
{}
if(getch())
{}
}

Is This Answer Correct ?    4 Yes 1 No

How to add two numbers without using semicolon n c????..

Answer / guest

int main()
{

return(5+6);
}

Is This Answer Correct ?    7 Yes 11 No

Post New Answer

More C Interview Questions

What is c language and why we use it?

0 Answers  


What are header files and what are its uses in C programming?

0 Answers  


What is the use of parallelize in spark?

0 Answers  


What is the difference between new and malloc functions?

0 Answers   InterGraph,


What does it mean when a pointer is used in an if statement?

0 Answers  






What is hungarian notation? Is it worthwhile?

0 Answers  


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

0 Answers  


Compare and contrast compilers from interpreters.

0 Answers  


An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode

0 Answers  


struct node { int *a; char *b; char array[12]; }; struct node m,*n; assign the value in *a,*b,char array[12]

3 Answers  


How are variables declared in c?

0 Answers  


a memory of 20 bytes is allocated to a string declared as char *s then the following two statements are executed: s="Etrance" l=strlen(s); what is the value of l ? a.20 b.8 c.9 d.21

4 Answers   TCS,


Categories