Which C++ header file is used to manipulate vector algebra?
Which of the following issues can cause an exception?
What are mandatory parts in the function declaration?
What would be the output of the following C program?
int main()
{
int *m, *c;
m = (int *)malloc(sizeof(int));
printf("%d", *m);
c = (int *)calloc(1, sizeof(int));
printf("%d", *c);
}
Consider the following function written in the C programming language. The output of the above function on input “ABCD EFGH” is
void foo (char *a) { if (*a && *a != ` `) { foo(a+1); putchar(*a); } }
Consider the following C program:
#include<stdio.h> int main() { int a[] = {2, 4, 6, 8, 10}; int i, sum = 0, *b = a + 4; for (i = 0; i < 5; i++ ) sum = sum + (*b - i) - *(b - i); printf("%dn", sum); return 0; }
The output of above C program is
The output of executing the following C program is ________. # include int total(int v) { static int count = 0; while (v) { count += v & 1; v >>= 1; } return count; } void main() { static int x = 0; int i = 5; for (; i> 0; i--) { x = x + total(i); } printf (“%dn”, x) ; }
Consider the following C program. The output of the program is __________.
# include <stdio.h> int f1(void); int f2(void); int f3(void); int x = 10; int main() { int x = 1; x += f1() + f2() + f3() + f2(); pirntf("%d", x); return 0; } int f1() { int x = 25; x++; return x; } int f2( ) { static int x = 50; x++; return x; } int f3( ) { x *= 10; return x; }
Consider the following ANSI C program.
#include <stdio.h> int main() { int i, j, count; count=0; i=0; for (j=-3; j<=3; j++) { if (( j >= 0) && (i++)) count = count + j; } count = count +i; printf(“%d”, count); return 0; }
Which one of the following options is correct?
OnSite
1 Openings
FullTime
Posted 17 days ago