Can we include one C program into another C program if yes how?
Answer Posted / dennis richie
@ answer 3:
der can't b multiple declaration of main...
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What should malloc() do?
What does sizeof function do?
Explain what standard functions are available to manipulate strings?
What's the difference between constant char *p and char * constant p?
What are the features of c language?
Why c is called a middle level language?
Tell me is null always defined as 0(zero)?
Distinguish between actual and formal arguments.
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
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 mean by data types in c?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
write a program to rearrange the array such way that all even elements should come first and next come odd
What is a macro?
Is register a keyword in c?