Home / MCQ Bank / Computer
Computer Function

Comment on the output of the following C code. #include <stdio.h> int main() { int i; for (i = 0;i < 5; i++) int a = i; printf("%d", a); }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • Syntax error in declaration of a

Related Computer Questions

Which of the following statements about constructors in C# is true? Which function is used to read a line of text from a file in C? How are many sequences of statements present in c++? What type of queue implementation would be best for implementing a scheduling algorithm? The insert() procedure, given below, builds the BST on the input elements, which is the first step of the binary tree sort. Choose the correct to fill the condition. void insert(Tree* node, int newElement) { if(node== NULL) { node = createNewNode(); node-> value = newElement; node -> left = NULL; node -> right = NULL; return; } else if(__________________) { insert(node->left, newElement); } else { insert(node->right, newElement); } }