#include<stdio.h>
main()
{
int a[3];
int *I;
a[0]=100;a[1]=200;a[2]=300;
I=a;
Printf(“%d\n”, ++*I);
Printf(“%d\n”, *++I);
Printf(“%d\n”, (*I)--);
Printf(“%d\n”, *I);
}
what is the o/p
a. 101,200,200,199
b. 200,201,201,100
c. 101,200,199,199
d. 200,300,200,100
Answer Posted / mann
a. 101,200,200,199
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What are qualifiers and modifiers c?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
What is sizeof array in c?
What is .obj file in c?
What is use of integral promotions in c?
Differentiate between a structure and a union.
How can I avoid the abort, retry, fail messages?
Explain what is the difference between functions getch() and getche()?
How many loops are there in c?
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
How can I remove the trailing spaces from a string?
code for replace tabs with equivalent number of blanks
What is the difference between test design and test case design?
What is indirection? How many levels of pointers can you have?
What are two dimensional arrays alternatively called as?