1.write a program to merge the arrays
2.write efficient code for extracting unique elements from a
sorted list of array?
Answer Posted / jaggu
#include<stdio.h>
#include<conio.h>
main()
{
int a[5]={1,2,3,4,5},b[4]={-6,-7,-8,-9},i,j=0;
for(i=5;i<=5+4-1;i++)
{
a[i]=b[j];
j++;
}
for(i=0;i<9;i++)
printf("a[%d]=%d \t",i,a[i]);
getch();
}
| Is This Answer Correct ? | 17 Yes | 55 No |
Post New Answer View All Answers
How would you rename a function in C?
List some of the dynamic data structures in C?
What are the applications of c language?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
Explain why C language is procedural?
Difference between constant pointer and pointer to a constant.
What is void main () in c?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
What is c preprocessor mean?
What are external variables in c?
Why header file is used in c?
What does int main () mean?
what is the function of pragma directive in c?
What is the method to save data in stack data structure type?
Why is c not oop?