Some noob questions regarding 2 dime array... pls... help me :(

Discussion in 'C' started by cuty_nikka, Aug 14, 2006.

  1. cuty_nikka

    cuty_nikka New Member

    Joined:
    Aug 14, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    plz help me :( .. i cant find the answers on google :(

    1. What is the other term used to refer to a two dime array?

    2. If an array has been declared as arr[4][3], how many elements do
    you have?

    3. An array should always start its index at zero?

    4. The statement int arr[20]={1,2}; is a valid statement?

    5. The last allowable index to be used in an array is size-1?

    6. What do you call a data structure having a sequence of elements of the
    same type?

    7. In the statement int arr[30]={1,2,3}; what is the size of the array?

    8. An array which is automatically expanded to accommodate new objects
    if filled beyond its current size?

    9. The function call displayMe(arr[5]); is a valid statement?

    10. The function header void displayME(arr,size); is a valid statement?

    11. Is an array a data structure or an algorithm?

    12. The shrinking and expanding of the memory allocation of a dynamic
    array is similar to what other data structure?

    13. You cannot use an array without declaring first the header file
    conio.h?

    14. What is the initial value of an array when declared inside a function?
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    vector or list

    12

    in C++ yes

    Yes

    Yes

    Array

    30.

    Vector

    Yes

    No. It should be datatype and not arr and size

    Data structure

    Vector/list

    not true.

    garbage.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice