NPTEL Problem solving through Programming In C Assignment 4 Answers 2022 :- Here All The Questions and Answers Provided to Help All The Students and NPTEL Candidate
Category: Problem Solving Through Programming In C
Problem Solving Through Programming In C
NPTEL Problem solving through Programming In C Assignment 12 Answers 2022 :- Here All The Questions and Answers Provided to Help All The Students and NPTEL Candidate
NPTEL Problem solving through Programming In C Assignment 11 Answers 2022 :- Here All The Questions and Answers Provided to Help All The Students and NPTEL Candidate
NPTEL Problem solving through Programming In C Assignment 10 Answers 2022 :- Here All The Questions and Answers Provided to Help All The Students and NPTEL Candidate

NPTEL Problem solving through Programming In C Assignment 9 Answers 2022 :- Here All The Questions and Answers Provided to Help All The Students and NPTEL Candidate

NPTEL Problem solving through Programming In C Assignment 8 Answers 2022 :- Here All The Questions and Answers Provided to Help All The Students and NPTEL Candidate
![Q1. Which of the following statements are correct? i. A string is a collection of characters terminated by 10′. ii. The format specifier %s is used to print a string. iii. The length of the string can be obtained by strlen(). iv. The pointer cannot work on string a. i, ii b. i, ii, iii c. ii, iv d. i, iii Answer By SciShowEngineer: b. i, ii, iii For More Updates Follow Us on Telegram Q2. The right method of initializing a 2D array is a. int abc[2][2] = {1, 2, 3, 4} b. int abc[][] = {1,2,3,4} c. int abc[2][] = {1,2,3,4} d. all of the above Answer By SciShowEngineer: a. int abc[2][2] = {1, 2, 3,4} Q3. The array passed as an argument to a function is interpreted as a. Address of all the elements in an array b. Value of the first element of the array c. Address of the first element of the array d. Number of elements of the array Answer By SciShowEngineer: c. Address of the first element of the array Q4. What will be the output? #include int main() { int disp[3][4]={{5, 6,8,2},{4,5,3,7}, {1,10,13,15}}; printf("%d\n",disp[2][3]); return 0; } Answer By SciShowEngineer: 15 Q5. What will be the output? #include int main() { char str1[]="Live and let live";char str2[]={'L', 'ï', 'v', 'e', ' ', 'a', 'n', 'd', ' ', 'l', 'e', 't',' ','l', 'i', 'v', 'e'}; int n1= sizeof(str1)/sizeof(str1[0]); int n2= sizeof(str2)/sizeof(str2[0]); printf("n1=%d, n2=%d",nl,n2); return 0; } a. n1=18, n2=17 b. n1=18, n2=18 c. n1=17, n1=17 d) n1=17, n2=18 Answer By SciShowEngineer: a. n1=18, n2=17 Q6. What will be the value of ‘i’ after the execution of the C code fragment given below? static char str1[]="dills"; static char str2[20]; static char str3[]="daffo"; int i; i=strcmp(strcat(str3, strcpy(str2,str1)),"daffodills"); Answer By SciShowEngineer: 0 Q7. Consider the following C program segment: #include #include int main() { char p[20]; char s[]="string"; int length=strlen(s); int i; for(i=0;i](https://scishowengineer.com/wp-content/uploads/2022/03/Copy-of-Copy-of-Kolkata-FF-Patti-2.webp)
NPTEL Problem solving through Programming In C Assignment 7 Answers 2022 :- Here All The Questions and Answers Provided to Help All The Students and NPTEL Candidate

NPTEL Problem solving through Programming In C Assignment 6 Answers 2022 :- Here All The Questions and Answers Provided to Help All The Students and NPTEL Candidate