ExamVeda
Login
Home
81
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    char *str = "hello, world";
    char str1[15] = "hello wo 9";
    strcpy(str, str1);
    printf("%s", str1);
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
82
What is the return value of getc()?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
83
What does the C statement given below says?
scanf("%7s",ch);
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
84
What action is carried out by scanf if a user enters any blank spaces, tabs, and newlines?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
85
Which of the following will return a non-zero value when checked with isspace(c)?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
86
Which is the correct way to generate numbers between minimum and maximum(inclusive)?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
87
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    char str[10] = "hello";
    char *str1 = "world";
    strncat(str, str1, 9);
    printf("%s", str);
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
88
What will be the value of var for the following C statement?
var = strcmp("Hello", "World");
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
89
If by mistake you specify more number of arguments, the excess arguments will . . . . . . . .
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
90
What is the purpose of va_end?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board