Read the following data in two different files
File A: aaaaaaaadddddddd
bbbbbbbbeeeeeeee
ccccccccffffffff
File B: 11111111
22222222
33333333
By using the above files print the following output or
write it in the
Other file as follows
aaaaaaaa11111111dddddddd
bbbbbbbb22222222eeeeeeee
cccccccc33333333ffffffffffff
No Answer is Posted For this Question
Be the First to Post Answer
What is an operator?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
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<n1-1;i++) { if( !( (a1[i]>a1[i+1]) && (a2[i]>a2[i+1]) ) ) return false; } return true;//assumed that each array doesn't contain duplicate elements in themshelves }
Write one statement equalent to the following two statements x=sqr(a); return(x); Choose from one of the alternatives a.return(sqr(a)); b.printf("sqr(a)"); c.return(a*a*a); d.printf("%d",sqr(a));
What is the difference between break and continue?
What is the main difference between calloc () and malloc ()?
Can you mix old-style and new-style function syntax?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
When can you use a pointer with a function?
How do you determine a file’s attributes?
Tell me what are bitwise shift operators?
how to write a program which adds two numbers without using semicolon in c