ExamVeda
Login
Home
81
What is the first argument in command line arguments?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
82
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int i = 0, j = 1;
    int *a[] = {&i, &j};
    printf("%d", (*a)[1]);
    return 0;
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
83
Which of the following is the correct syntax to send an array as a parameter to function?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
84
Which is true for b, if b is defined as "int *b[10];"?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
85
Comment on the output of the following C code.
#include <stdio.h>
int main()
{
    int a = 10;
    int **c -= &&a;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
86
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int ary[2][3];
    ary[][] = {{1, 2, 3}, {4, 5, 6}};
    printf("%d\n", ary[1][0]);
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
87
What makes the following declaration denote?
char *str[5];
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
88
What will be the output of the following C code?
#include <stdio.h>
void foo(int *ary[]);
int main()
{
    int ary[2][3];
    foo(ary);
}
void foo(int *ary[])
{
    int i = 10, j = 2, k;
    ary[0] = &i;
    ary[1] = &j;
    *ary[0] = 2;
    for (k = 0;k < 2; k++)
    printf("%d\n", *ary[k]);
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
89
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int a[3] = {1, 2, 3};
    int *p = a;
    int *r = &p;
    printf("%d", (**r));
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
90
What will be the output of the following C code?
#include <stdio.h>
struct student
{
    int no;
    char name[20];
};
void main()
{
    struct student s;
    s.no = 8;
    printf("hello");
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board