Main must be written as
a.the first function in the program
b.Second function in the program
c.Last function in the program
d.any where in the program
Answer Posted / sudipta panja
(d)--execution starts from main,i.e. compiler starts
compiling from main but the posn of main is not fixed.it can
be anywhere.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Hai what is the different types of versions and their differences
What is c++ used for today?
Differentiate between #include<...> and #include '...'
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
How do you print an address?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
Why #include is used in c language?
How to create struct variables?
You have given 2 array. You need to find whether they will
create the same BST or not.
For example:
Array1:10 5 20 15 30
Array2:10 20 15 30 5
Result: True
Array1:10 5 20 15 30
Array2:10 15 20 30 5
Result: False
One Approach is Pretty Clear by creating BST O(nlogn) then
checking two tree for identical O(N) overall O(nlogn) ..we
need there exist O(N) Time & O(1) Space also without extra
space .Algorithm ??
DevoCoder
guest
Posted 3 months ago #
#define true 1
#define false 0
int check(int a1[],int a2[],int n1,int n2)
{
int i;
//n1 size of array a1[] and n2 size of a2[]
if(n1!=n2) return false;
//n1 and n2 must be same
for(i=0;i
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
How will you divide two numbers in a MACRO?
With the help of using classes, write a program to add two numbers.
Write a program to know whether the input number is an armstrong number.
#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); }