Home / MCQ Bank / Computer
Computer Fundamentals

What will be the output of the following C code? #include <stdio.h> int main() { int x = 3; //, y = 2; const int *p = &x; *p++; printf("%d\n", *p); }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • Some garbage value

Related Computer Questions

In which year was UK's premier computing event called "The Which Computer" started? Which of the following unit represent the viewport's width? What is the output of the following code? #include<stdio.h> int get_len(char *s) { int len = 0; while(s[len] != '\0') len++; return len; } int main() { char *s = "lengthofstring"; int len = get_len(s); printf("%d",len); return 0; } How many comparisons will be made to sort the array arr={1, 5, 3, 8, 2} using bucket sort? Shell sort is an improvement on ______