c program to print a name without using semicolon
Answer Posted / amegha
main()
{
if(printf("AMEGHA")
{
}
}
| Is This Answer Correct ? | 36 Yes | 17 No |
Post New Answer View All Answers
What are categories used for in c?
write a program to rearrange the array such way that all even elements should come first and next come odd
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
Why main function is special give two reasons?
write a program to display all prime numbers
What is wrong with this program statement?
What are the advantages of external class?
What is #pragma statements?
What is meant by inheritance?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
Why is c called a structured programming language?
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
What is 1f in c?
Write a program to print factorial of given number without using recursion?
What is malloc() function?