Company: Arista_27_Dec_MCQ
Difficulty: medium
What is the difference between the functions memcpy and memmove? memcpy is declared in <string.h> and memmove is declared in <stdlib.h> memcpy copies the strings whereas memmove copies as well as moves the strings memcpy is for nonoverlapping memory areas whereas memmove can be used for overlapping memory memcpy is portable whereas memmove is nonportable How do you declare a pointer to an array of pointers to int? int *a[5]; int **a[5]; int *(*a)[5]; None of these Given an array A = {7, 9, 4, 5, 6, 3, 10, 7, 100}. Find the inversion count of the array. If (i < j and A[i] > A[j]), then pair (i, j) is called an inversion of an array A. How many inversions are in the array? 13 12 14 11 What is the output of the code? unsigned int fact(int x){ return(x*fact(x-1)); } int main(){ int x,y=10; x=4; y=fact(x); printf("%d\n",y); } 24 10 4 Segmentation Fault Predict the output: #include <stdio.h> #include <string.h> int main(){ char char_arr[6]="ORACL"; char c='E'; p