[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.

Interview Questions on C Programs

    41 / 123

    What are the advantages of using pointers?
    Answer:

    No Discussion on this question yet!

    Please Login First :

    42 / 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 :

    43 / 123

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

    No Discussion on this question yet!

    Please Login First :

    44 / 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 :

    45 / 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 :

    46 / 123

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

    No Discussion on this question yet!

    Please Login First :

    47 / 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 :

    48 / 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 :

    49 / 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 :

    50 / 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 :


Frequently asked Interview Questions on C Programs at Freshers and experience level. All Question are based on the real time experience of previous candidates. You can search and filter the question set by company name from the tag cloud.

Q4I Collection of C Programming Interview Questions and Answers with Explanations asked in campus/off-campus interviews, walk-in interview and various IT companies Interview at Freshers & Experienced level. Multiply your selection chance by practicing the C Interview Question from basic to Standard, or by going through Company specific pattern of question asked from C Programming.

So, next time, when you prepare for a company's interview, please check your knowledge against these C language technical interview questions and answers.