if array a conatins 'n' elements and array b conatins 'n-1'
elements.array b has all element which are present in array
a but one element is missing in array b. find that
element.
Answer Posted / nikita
add the sum of elements in array a and then that of array
b.. subtract the sums of the two arrays a and b. ul get the
missing element
| Is This Answer Correct ? | 48 Yes | 1 No |
Post New Answer View All Answers
How to throw some light on the b tree?
How can I handle floating-point exceptions gracefully?
What is a global variable in c?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
What are multidimensional arrays?
What are dangling pointers? How are dangling pointers different from memory leaks?
What are the types of data types and explain?
How do you initialize pointer variables?
What is ambagious result in C? explain with an example.
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
What is the use of c language in real life?
What is ponter?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
What are local variables c?