What will be the output of the program?
#include
#define MAX(a, b, c) (a>b ? a>c ? a : c: b>c ? b : c)
int main()
{
int x;
x = MAX(3+2, 2+7, 3+7);
printf("%d\n", x);
return 0;
}
va_list is
Identify the trigraph sequence for .
The function ____ obtains block of memory dynamically.
Output?
# include
# include
void fun(int *a)
{
a = (int*)malloc(sizeof(int));
}
int main()
{
int *p;
fun(p);
*p = 6;
printf("%dn",*p);
return(0);
}
Is the following declaration acceptable?
typedef long no, *ptrtono;
no n;
ptrtono p;
What is the output of this C code?
#include
int main()
{
int i = 10;
int *p = &i;
foo(&p);
printf("%d ", *p);
printf("%d ", *p);
}
void foo(int **const p)
{
int j = 11;
*p = &j;
printf("%d ", **p);
}
Are the expressions arr and &arr same for an array of 10 integers?
What will be the output of the program?
#include
int main()
{
int i=3;
switch(i)
{
case 1:
printf("Hello\n");
case 2:
printf("Hi\n");
case 3:
continue;
default:
printf("Bye\n");
}
return 0;
}
Which of the following library functions returns the time in UTC (Greenwich mean time) format?
Which of the following is capable of recognizing a pre-specified type of mark by pencil or pen?
What will be returned in the following C code?
size- t strlen(const char *s)
const char *sc;
for(sc = s; *sc!= ' \ O ' ; ++sc)
return(sc - s) ;
What does the following function returns void *memmove(void *s1,const void s2, size_t n);?
#include
int main()
{
char str[] = "GeeksQuiz";
printf("%s %s %s\n", &str[5], &5[str], str+5);
printf("%c %c %c\n", *(str+6), str[6], 6[str]);
return 0;
}
What is the output of following program?
# include
int main()
{
char str1[] = "GeeksQuiz";
char str2[] = {'G', 'e', 'e', 'k', 's', 'Q', 'u', 'i', 'z'};
int n1 = sizeof(str1)/sizeof(str1[0]);
int n2 = sizeof(str2)/sizeof(str2[0]);
printf("n1 = %d, n2 = %d", n1, n2);
return 0;
}
What is the output of this C code?
int *f();
int main()
{
int *p = f();
printf("%d\n", *p);
}
int *f()
{
int j = 10;
return &j;
}
Names of functions in two different files linked together must be unique
What will be the output of the following program?
#include< stdio>
Void f(static int*, extern int);
Static int b = 12;
Int main()
{
Static int a[5];
Register int I;
For(I = 0; I < 2> A[i++] = 2 * i++;
F(a, b);
For(I = 0; I < 2> Printf(“%d”, b++);
Return 0;
}
Void f (static int *x, extern int y)
{
Register int I;
For(I = 0; I < 2> *(++x +1) + = 2;
Y + = 2;
}
The precedence of arithmetic operators is (from highest to lowest)?
Which of the following storage devices can store maximum amount of data?
Total number of questions : 20
Number of answered questions : 0
Number of unanswered questions : 20
What will be the output of the program?
#include
#define MAX(a, b, c) (a>b ? a>c ? a : c: b>c ? b : c)
int main()
{
int x;
x = MAX(3+2, 2+7, 3+7);
printf("%d\n", x);
return 0;
}
Your Answer : (Not Answered)
Correct Answer : C
No answer description available for this question.
va_list is
Your Answer : (Not Answered)
Correct Answer : B
No answer description available for this question.
Identify the trigraph sequence for .
Your Answer : (Not Answered)
Correct Answer : A
The trigraph sequence for is ??/
The function ____ obtains block of memory dynamically.
Your Answer : (Not Answered)
Correct Answer : C
None
Output?
# include
# include
void fun(int *a)
{
a = (int*)malloc(sizeof(int));
}
int main()
{
int *p;
fun(p);
*p = 6;
printf("%dn",*p);
return(0);
}
Your Answer : (Not Answered)
Correct Answer : A
No answer description available for this question.
Is the following declaration acceptable?
typedef long no, *ptrtono;
no n;
ptrtono p;
Your Answer : (Not Answered)
Correct Answer : A
No answer description available for this question.
What is the output of this C code?
#include
int main()
{
int i = 10;
int *p = &i;
foo(&p);
printf("%d ", *p);
printf("%d ", *p);
}
void foo(int **const p)
{
int j = 11;
*p = &j;
printf("%d ", **p);
}
Your Answer : (Not Answered)
Correct Answer : B
No answer description available for this question.
Are the expressions arr and &arr same for an array of 10 integers?
Your Answer : (Not Answered)
Correct Answer : B
No answer description available for this question.
What will be the output of the program?
#include
int main()
{
int i=3;
switch(i)
{
case 1:
printf("Hello\n");
case 2:
printf("Hi\n");
case 3:
continue;
default:
printf("Bye\n");
}
return 0;
}
Your Answer : (Not Answered)
Correct Answer : A
No answer description available for this question.
Which of the following library functions returns the time in UTC (Greenwich mean time) format?
Your Answer : (Not Answered)
Correct Answer : C
No answer description available for this question.
Which of the following is capable of recognizing a pre-specified type of mark by pencil or pen?
Your Answer : (Not Answered)
Correct Answer : A
OMR stands for optical mark reader. These are very useful for grading tests with objective type questions or for any input data that is of choice or selection nature.
What will be returned in the following C code?
size- t strlen(const char *s)
const char *sc;
for(sc = s; *sc!= ' \ O ' ; ++sc)
return(sc - s) ;
Your Answer : (Not Answered)
Correct Answer : B
The strlen() function is used to return the length of the string s.
What does the following function returns void *memmove(void *s1,const void s2, size_t n);?
Your Answer : (Not Answered)
Correct Answer : A
The memmove() function copies n characters from the object pointed to by s2 into the object pointed to by s1.The memmove() function returns the value of s1.
#include
int main()
{
char str[] = "GeeksQuiz";
printf("%s %s %s\n", &str[5], &5[str], str+5);
printf("%c %c %c\n", *(str+6), str[6], 6[str]);
return 0;
}
Your Answer : (Not Answered)
Correct Answer : D
No answer description available for this question.
What is the output of following program?
# include
int main()
{
char str1[] = "GeeksQuiz";
char str2[] = {'G', 'e', 'e', 'k', 's', 'Q', 'u', 'i', 'z'};
int n1 = sizeof(str1)/sizeof(str1[0]);
int n2 = sizeof(str2)/sizeof(str2[0]);
printf("n1 = %d, n2 = %d", n1, n2);
return 0;
}
Your Answer : (Not Answered)
Correct Answer : A
No answer description available for this question.
What is the output of this C code?
int *f();
int main()
{
int *p = f();
printf("%d\n", *p);
}
int *f()
{
int j = 10;
return &j;
}
Your Answer : (Not Answered)
Correct Answer : A
No answer description available for this question.
Names of functions in two different files linked together must be unique
Your Answer : (Not Answered)
Correct Answer : A
True, If two function are declared in a same name, it gives "Error: Multiple declaration of function_name())".
What will be the output of the following program?
#include< stdio>
Void f(static int*, extern int);
Static int b = 12;
Int main()
{
Static int a[5];
Register int I;
For(I = 0; I < 2> A[i++] = 2 * i++;
F(a, b);
For(I = 0; I < 2> Printf(“%d”, b++);
Return 0;
}
Void f (static int *x, extern int y)
{
Register int I;
For(I = 0; I < 2> *(++x +1) + = 2;
Y + = 2;
}
Your Answer : (Not Answered)
Correct Answer : C
No answer description available for this question.
The precedence of arithmetic operators is (from highest to lowest)?
Your Answer : (Not Answered)
Correct Answer : A
No answer description available for this question.
Which of the following storage devices can store maximum amount of data?
Your Answer : (Not Answered)
Correct Answer : B
No answer description available for this question.
Total number of questions : 20
Number of answered questions : 0
Number of unanswered questions : 20
We'll write only best content for you