Home / MCQ Bank / Computer
Computer Function Difficulty: Medium

What will be the output of the following C code? #include <stdio.h> int x; void main() { m(); printf("%d", x); } void m() { x = 4; }

Select the correct option to test your answer:

More Computer Questions

Which of the following refers to the SQL Server transaction isolation level which places and holds locks on all rows that are read? . . . . . . . . does not support the notion of enclosing characters that may include field delimiters in the enclosed string. Which function is used to combine the elements into a vector? To register a "watch" on a znode data, you need to use the . . . . . . . . commands to access the current content or metadata. What will be the output of the following C++ code? #include <stdio.h> #include <stdlib.h> #include <ctype.h> int main () { char str[] = "ffff"; long int number; if (isxdigit(str[0])) { number = strtol (str, NULL, 16); printf ("%ld\n", number); } return 0; }