Question: Answer questions 3, 4, and 5. 3. What does the following code snippet do? Note: strien returns the longth of a NULL-terminated string. char* str

Answer questions 3, 4, and 5.
3. What does the following code snippet do? Note: strien returns the longth of a NULL-terminated string. char* str = "hello"; int i for i strlen (str) -1; i-0; i fputc(str [il, stdout)i 4. Given the declaration of str in the previous problem, what will the following stateinent print out? if (str[strlen (str)]) fputs ("yes", stdout) else fputs ("no", stdout) 5. Consider this macro definition: #define MULTI 0 (a) (a+10) What value is assigned to the variable val in the following code snippet: val MULT10 (2+3) Fix the macro definition, if necessary, to make it correctly assign a 50
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
