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 |
Explain #pragma statements.
Write a main() program that calls this function at least 10 times. Try implementing this function in two different ways. First, use an external variable to store the count. Second, use a local variable. Which is more appropriate?
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=?
which types of data structure will i use to convert infix to post fix???
2)#include<iostream.h> main() { printf("Hello World"); } the program prints Hello World without changing main() the o/p should be intialisation Hello World Desruct the changes should be a)iostream operator<<(iostream os, char*s) os<<'intialisation'<<(Hello World)<<Destruct b) c) d)none of the above
Write a program to display the no of bit difference between any 2 given numbers eg: Num1 will 12->1100 Num2 will 7->0111 the difference in bits are 2.
Write down the program to sort the array.
Explain how are 16- and 32-bit numbers stored?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
Write a programm such that if user enter 11.25 it roundup to 11 but if user enter 11.51 upto 11.99 it will round up to 12 i.e.;convert the floting point value into integer format as explain above..
Explain what are the advantages and disadvantages of a heap?
What is the meaning of typedef struct in c?