Looking for Programming Courses - Module Promotion - Viva Voce test answers and solutions? Browse our comprehensive collection of verified answers for Programming Courses - Module Promotion - Viva Voce at lms2.ai.saveetha.in.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
What will be the output of the following code?
#include
int main() {
int a = 3, b = 2, c = 1;
if (a < b)
if (b < c)
printf("b < c\n");
else
printf("a < b\n");
return 0;
}
What will be the output of the following code?#include <stdio.h>int main() { char *str = "Hello"; str[0] = 'M'; printf("%s", str); return 0;}
What is the time complexity of the following nested loop?for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { printf("%d ", i + j); }}
What is the default value of the first enum member if not assigned explicitly?enum Color { RED, GREEN, BLUE };