How to add two numbers without using semicolon n c????
Answers were Sorted based on User's Feedback
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 |
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 |
What is the difference between class and object in c?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
Difference between goto, long jmp() and setjmp()?
How do you convert strings to numbers in C?
we have to use realloc only after malloc or calloc ? or we can use initially with out depending on whether we are using malloc or calloc in our program ?
what is a NULL pointer?
1.what are local and global variables? 2.what is the scope of static variables? 3.what is the difference between static and global variables? 4.what are volatile variables? 5.what is the use of 'auto' keyword? 6.how do we make a global variable accessible across files? Explain the extern keyword? 7.what is a function prototype? 8.what does keyword 'extern' mean in a function declaration?
void main() { static int i = 5; if(--i) { main(); printf("%d ",i); } } what would be output of the above program and justify your answer? }
5 Answers C DAC, CDAC, Infosys, Wipro,
What is the difference between abs() and fabs() functions?
int a=20; int b=30; int c=40; printf("%d%d%d"); what will be the output?
what is the other ways to find a logic to print whether a number is an even or odd wit out using % symbol??????? i know three different ways to print it. so i need any other different logic>>>>>
Are global variables static in c?