In this section you can learn and practice C Programming Questions based on "Arrays" and improve your skills in order to face the interview, competitive examination and various entrance test (CAT, GATE, GRE, MAT, Bank Exam, Railway Exam etc.) with full confidence.
Where can I get C Programming Arrays questions and answers with explanation?
IndiaBIX provides you lots of fully solved C Programming (Arrays) questions and answers with Explanation. Solved examples with detailed answer description, explanation are given and it would be easy to understand. All students, freshers can download C Programming Arrays quiz questions with answers as PDF files and eBooks.
Where can I get C Programming Arrays Interview Questions and Answers (objective type, multiple choice)?
Here you can find objective type C Programming Arrays questions and answers for interview and entrance examination. Multiple choice and true or false type questions are also provided.
How to solve C Programming Arrays problems?
You can easily solve all kind of C Programming questions based on Arrays by practicing the objective type exercises given below, also get shortcut methods to solve C Programming Arrays problems.
If the index of the array size is exceeded, the program will crash. Hence "option c" is the correct answer. But the modern compilers will take care of this kind of errors.
Example: Run the below program, it will crash in Windows (TurboC Compiler)
#include<stdio.h>
int main()
{
int arr[2];
arr[3]=10;
printf("%d",arr[3]);
return 0;
}
Since C is a compiler dependent language, it may give different outputs at different platforms. We have given the Turbo-C Compiler (Windows) output.
Please try the above programs in Windows (Turbo-C Compiler) and Linux (GCC Compiler), you will understand the difference better.