what type of language is C?

Answer Posted / tamil

Procedural language

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

1962


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;ia1[i+1]) && (a2[i]>a2[i+1]) ) ) return false; } return true;//assumed that each array doesn't contain duplicate elements in themshelves }

2720


What is the use of f in c?

561


What is the collection of communication lines and routers called?

616


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

917






What is the c value paradox and how is it explained?

581


Can a local variable be volatile in c?

584


What are operators in c?

588


Is it possible to initialize a variable at the time it was declared?

763


Write a C program to count the number of email on text

1422


Explain what does it mean when a pointer is used in an if statement?

621


What are keywords in c with examples?

612


What is the difference between the expression “++a” and “a++”?

652


What is the difference between struct and typedef struct in c?

663


Is c call by value?

613