Predict the Output: int x = 1;switch(x) { case 1: …
Predict the Output: int x = 1;switch(x) { case 1: printf(“A”); case 2: printf(“B”); break; default: printf(“C”);} Explain what is printed and why? Consider the code is fully formed, i.e., no excuses like missing main(), missing stdio.h, etc.
Read DetailsGiven two strings st1[], and st2[], implement a logic to com…
Given two strings st1[], and st2[], implement a logic to compare the two strings, without using the string.h library and it’s functions. Concentrate on your array logic, variables, and printf() statements. Assume both the strings are already declared and defined, and the size of input string is unknown. Sample output: For example, if st1[] = “Hello, How are you.” and st2[] = “Welcome to UTSA…” The strings are unequal. Note: Using library string functions will give NO points.
Read Details