T
Q. What will be the output of the following C program?
#include <stdio.h> int main() { int x[5] = { 10, 20, 30 }; printf("%d", x[-1]); return 0; }
C language compiler does not check array with its bounds, when an index is out of the range the garbage value is printed.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. What is ptr in the given statement?
Q. What is the sizeof(char) in a 32-bit C compiler?
Q. Which of the following correctly represents a long double constant?
Q. What will be the output of the following C code?
Q. What will be the output of the following C code?
Q. Which one of the following is known as the 'language of the computer'?
Q. Choose a correct statement about C structures.
Q. What will be the output of the following C code?
Q. Expand or Abbreviate ASCII with regard to C Language.
Q. Which syntax is correct to include a specific preprocessor based on configuration?
Discusssion
Login to discuss.