Company: Mathworks mcq
Difficulty: medium
Predict the output of following C program: #include <stdio.h> void main() { int i=6; printf("%d %d %d %d %d\n",i,++i,i,i++,i--); } 7 7 6 5 6 6 7 7 6 6 6 7 6 6 5 7 7 7 7 7 What output following code produces? #include <stdio.h> void call(char **ptr){ char *ptr1; ptr1 = (ptr+=sizeof(int))-2; printf("%s\n",*ptr1); } int main(){ char *arr[] = {"mathworks","matlab","simulink"}; call(arr); return 0; } mathworks matlab simulink Compilation Error Predict the output of the given program. #include <stdio.h> int main (void) { char* s = "B\0x4b"; printf("%s", s); return 0; } B Bx4b BK B0x4b What is the output for the following? #include <stdio.h> int main() { printf("MathWorks" + 5); return 0; } MathWorks Works orks MathW Which of the following is a valid IP host address given the network ID of 191.254.0.0 while using 11 bits for subnetting? 191.254.0.32 191.254.0.96 191.254.1.29 191.254.255.255 In which of the following options, we cannot construct a unique binary tree? In