[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Technical Interview Questions and Answers :: C

    11 / 123

    What are the advantages of using pointers?
    Answer:

    No Discussion on this question yet!

    Please Login First :

    12 / 123

    What are the differences between malloc() and calloc()? Why is malloc preferred over calloc?
    Answer:

    No Discussion on this question yet!

    Please Login First :

    13 / 123

    How to use realloc() to dynamically increase size of an already allocated array?
    Answer:

    No Discussion on this question yet!

    Please Login First :

    14 / 123

    What is the equivalent pointer expression for referring an element a[i][j][k][l], in a four dimensional array?
    Answer:

    a[i] is written as *(a+i)

    a[i][j] is written as *(*(a+i)+j)

    so

    a[i][j][k][l]=*(*(*(*(a+i)+j)+k)+l)

    Please Login First :

    15 / 123

    Declare an array of three function pointers where each function receives two integers and returns float.
    Answer:

    No Discussion on this question yet!

    Please Login First :

    16 / 123

    Explain the variable assignment in the declaration
    int *(*p[10])(char *, char *);
    Answer:

    No Discussion on this question yet!

    Please Login First :

    17 / 123

    What is the value of
    sizeof(a) /sizeof(char *)
    in a code snippet:
    char *a[4]={"sridhar","raghava","shashi","srikanth"};
    Answer:

    No Discussion on this question yet!

    Please Login First :

    18 / 123

    What are the differences between the C statements below:
    char *str = "Hello";
    char arr[] = "Hello";
    Answer:

    No Discussion on this question yet!

    Please Login First :

    19 / 123

    Whether following statements get complied or not? Explain each statement.
    arr++;
    *(arr + 1) = 's';
    printf("%s",arr);
    Answer:

    No Discussion on this question yet!

    Please Login First :

    20 / 123

    When the a.out is loaded to memory what are the positions of memory segments (text, bss (uninitialized), data (initialized), heap, stack, environmental variables and CMD arguments).
    Answer:

    No Discussion on this question yet!

    Please Login First :