wt is diference between int and int pointer as same as float and float pointer and char and char pointer
8 13238write a c program to change only the 3rd bit of the particular number such that other bits are not affected.. if bitnum=10(say.. it can be any no..
10 30873write the output of following code .. main() { static int a[]={10,20,30,40,50}; int *ptr=a; static int arr[2][2]={1,2,3,4}; char str[]="ABCD * 4#"; char *s=str+2; int i,j; for(i=0;i<5,i++) printf("%d",*ptr++); for(i=0;i<2;i++) for(j=0;j<2;j++) printf("%d\n",*(*(n+i)+j)); printf("%c\n%c\n%c\n",*(str+2),*s++,*--s); }
1 4191Write a c program to Find the name that you entered is male name or female name? Such as Sunjay is name of male and Payal is name of female
5 20387
What is output redirection?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
State the difference between realloc and free.
Find MAXIMUM of three distinct integers using a single C statement
What is malloc calloc and realloc 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
What is the use of a conditional inclusion statement in C?
What is zero based addressing?
Write a program of advanced Fibonacci series.
Why do we use & in c?
Explain how are portions of a program disabled in demo versions?
What is the difference between if else and switchstatement
Explain what are the advantages and disadvantages of a heap?
What functions are used in dynamic memory allocation in c?
How can you find the day of the week given the date?