Question: Q1. Select the correct instruction for creating an array A of 20 elements of double a) int A[20] c) double 20[A] double A[20]; ) double

Q1. Select the correct instruction for creating an array A of 20 elements of double a) int A[20] c) double 20[A] double A[20]; ) double A[N 20]; Q2. Consider the following two functions 1 char *f1(char *s1, const char *s2) char *p s1; while(*p) p+t; while(*p++ *s2++); return s 4. 7 char *f2(char *s1, const char *s2)1 char *p = s1 ; while( p) p++; p s2; while(++p *++s2); return s1; 10 13 a) f1 and f2 produce different results for any input b) Line 4 is equivalent to Lines 10 and 11 c) Line 4 is not equivalent to Lines 10 and 11. d) f1 and f2 produce same result for any input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
