main() {
int x=2, y=4
if ((x==2||y==4)
x++
y++
if (y==4+1)
{
x=x+y;
}
y++;
printf("The values of x and y are %d and %d."x,y);
}
What is the output?
Answer Posted / kirthi s
x=2.y=4
| Is This Answer Correct ? | 2 Yes | 14 No |
Post New Answer View All Answers
What are the salient features of c languages?
What is mean by data types in c?
What is far pointer in c?
How can I delete a file?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
Why use int main instead of void main?
How can I call a function with an argument list built up at run time?
What is floating point constants?
Linked lists -- can you tell me how to check whether a linked list is circular?
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 the height of tree if leaf node is at level 3. please explain
What is the explanation for the dangling pointer in c?
What is the use of f in c?
How can I find out how much free space is available on disk?
What does the c preprocessor do?