Answer Posted / sindhu
#define my main()
my()
{
printf("hello frnz");
}
| Is This Answer Correct ? | 14 Yes | 7 No |
Post New Answer View All Answers
What is a newline escape sequence?
What is the significance of scope resolution operator?
What are the types of macro formats?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
What is return type in c?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
What is the process to generate random numbers in c programming language?
Why doesn't C support function overloading?
How can I sort more data than will fit in memory?
In c programming language, how many parameters can be passed to a function ?
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 are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
Why is c called a structured programming language?
What is the correct declaration of main?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?