Answered Questions

  • What is the relationship between array name and pointer in C ?

    Abhishek Mane

    • Nov 23rd, 2018

    Int *ptr; int arr[4]={1,2,3,4}; Pointer always points to the Base address of the array *(ptr+1) == arr[1] *(ptr+2) == arr[2] *(ptr+3) == arr[3]

    Code
    1.  

    jbode

    • May 12th, 2017

    Unless it is the operand of the "sizeof" or unary "&" operators, or is a string literal used to initialize another array in a declaration, an *expression* of type "N-element array of T" will be conver...

  • Bottom-Up Approach

    Why we follow top down approach in C-language and bottom up approach in C++?Explain in detail.

    random viewer

    • Jun 11th, 2012

    The question is wrong. In most cases, regardless of the language, top down is the better approach. Actually TDD forces this. You must first know what you want, that is, how the client code will use it, before you can design it. Always top down. Just remember that.