identify the in correct expression
a.a=b=3=4;
b.a=b=c=d=0;
float a=int b=3.5;
d.int a;
float b;
a=b=3.5;
Answer Posted / valli
a is error because
a=b=3=4;
in this 3=4;
is wrong
| Is This Answer Correct ? | 15 Yes | 1 No |
Post New Answer View All Answers
program for reversing a selected line word by word when multiple lines are given without using strrev
Are local variables initialized to zero by default in c?
Why c is called top down?
What is a stream?
What is the use of header files?
What is quick sort in c?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
What is the difference between fread and fwrite function?
What is page thrashing?
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 abstract data structure in c?
What does & mean in scanf?
Explain void pointer?
What is #line in c?
What is exit() function?