Array Interview Questions

  • Why array index always start with zero?
  • Is it valid to access an element beyond the end of an array?
  • Can you find size of an array passed to a function using sizeof operator?
  • Is it better to use a pointer to access an array elements, or a subscripted array name?
  • Can you assign an address to an array tag(name)?
  • Is it array_name and &array_name both are same?
  • Why can’t variable is used in declaration of an array?
  • Why can't constant values be used to declare an array?
  • You can use symbolic constant in an array declaration?
  • Can you initialize more then size of array element values?
  • Can you assign more the size of array elements?
  • What will happen if assign a value to an array if you exceeds the size of array?
  • What is the difference between an array and a string?
  • How you can create an array that hold more than 64KB of data?
  • You can define size of an array at run time in declaration?
  • What is the difference between ++*pointer and *pointer++?
  • What is the difference between *--pointer and *pointer--?
  • How you can pass an array elements to a function by value?
  • How you can pass an array elements to a function by address?
  • Can you pass complete array any argument to a function?
  • How you can access complete array from outsize of the function?
  • Can you declare an array without size?
  • Can you initialize an array without size?
  • What you mean by variable number of arguments?
  • In a function variable number of arguments are fixed?
  • What is the use of stdarg.h file?
  • What is the use of va_arg()?
  • What is the use of va_end()?
  • What is the use of va_start()?
  • What is va_list?

0 comments:

Post a Comment