Home / MCQ Bank / Computer
Computer Pointer

What will be the output of the following C code? #include <stdio.h> int main() { char **p = {"hello", "hi", "bye"}; printf("%s", (p)[0]); return 0; }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • Undefined behaviour

Related Computer Questions

What is the name of the container which contains group of multiple objects? Tiny rings made of magnetic material that can be polarised to represent binary 1 or 0 is called What is the edit distance between the strings "abcd" and "acbd" when the allowed operations are insertion, deletion and substitution? Which traversal algorithm would you use to find the shortest path in an unweighted graph? Which of the below namespace declaration is correct?