ExamVeda
Login
Home
91
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int y = 2;
    int z = y +(y = 10);
    printf("%d\n", z);
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
92
What will be the output of the following C code?
#include <stdio.h>
#define a 10
int main()
{
    const int a = 5;
    printf("a = %d\n", a);
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
93
What will be the output of the following C function?
#include <stdio.h>
void reverse(int i);
int main()
{
    reverse(1);
}
void reverse(int i)
{
    if (i > 5)
        return ;
    printf("%d ", i);
    return reverse((i++, i));
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
94
For which of the following, "PI++;" code will fail?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
95
We want to declare x, y and z as pointers of type int. The alias name given is: intpt The correct way to do this using the keyword typedef is:
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
96
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int x = 2, y = 1;
    x *= x + y;
    printf("%d\n", x);
    return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
97
Relational operators cannot be used on . . . . . . . .
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
98
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int k = 4;
    float k = 4;
    printf("%d", k)
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
99
In the following code snippet, character pointer str holds a reference to the string . . . . . . . .
char *str =  "Examveda.com\0" "programming";
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
100
What is the size of myArray in the code shown below? (Assume that 1 character occupies 1 byte)
typedef char x[10];
x myArray[5];
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board