Engineering Online MCQ Number 0627 – online study, assignment and exam

Multiple choice question for engineering Set 1 1. What is the output of this C code? #include <stdio.h> void foo(int*); int main() { int i = 10; foo((&i)++); } void foo(int *p) { printf("%dn", *p); } a) 10 b) Some garbage value c) Compile time error d) Segmentation fault/code crash [learn_more caption=”View Answer”]Answer: c[/learn_more] 2….

This content is for Complete Homework, Premium 1 Day Pass, Premium 1 Month, and Premium 6 Months members only.
Log In Visit Now