Explain do array subscripts always start with zero?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

0 Answers  


Can we include one C program into another C program if yes how?

7 Answers   Infosys,


Why do we use main function?

0 Answers  


How is null defined in c?

0 Answers  


main() { int x=20,y=35; x = y++ + x++; y = ++y + ++x; printf("%d %d\n",x,y); }

27 Answers   Advent Global Solutions, CitiGroup, Valeo Lighting Systems India Private Limited, Vishal Transformers, Wipro, Zencer,






#include<stdio.h> #include<conio.h> # define swap(a,b) temp=a; a=b; b=temp; void main( ) { int i, j, temp; i=5; j=10; temp=0; if( i > j) swap( i, j ); printf( "%d %d %d", i, j, temp); }

9 Answers   Burning Glass,


parkside's triangle.. create a program like this.. enter the size: 6 enter the seed: 1 output: 1 23 456 7891 23456 789123 sample2: enter the size: 5 enter the seed: 3 output: 3 45 678 9123 45678 parkside should not exceed 10 while its seed should only be not more than 9..

4 Answers  


What is context in c?

0 Answers  


What are global variables and explain how do you declare them?

0 Answers  


Why ca not I do something like this?

0 Answers  


What do header files do?

0 Answers  


how to find the largest element of array without using relational operater?

6 Answers   Satyam, Wipro,


Categories