What is the other name of compile-time polymorphism?
What is std in C++?
Why is the gets() function considered dangerous?
What is a vector in the C++ container library?
Consider the following C program.
# include int main( ) { static int a[] = {10, 20, 30, 40, 50}; static int *p[] = {a, a+3, a+4, a+1, a+2}; int **ptr = p; ptr++; printf("%d%d", ptr - p, **ptr}; }
The output of the program is _________
When modifications are made to the parameters in the called function, and those modifications are not passed back to the calling function, the variables in the calling function remain unchanged. This is called:
What is the output of the following C code?
void main()
{
union student
{
int i;
char name[2];
};
union student s1 = {512};
union student s2 = {0, 'a', 'b'};
printf("%d %s", s1.i, s2.name);
}
Which of the following statement is correct?
Consider the following C functions.
int fun1(int n) { static int i= 0; if (n > 0) { ++i; fun1(n-1); } return (i); } int fun2(int n) { static int i= 0; if (n>0) { i = i+ fun1 (n) ; fun2(n-1) ; } return (i); }
The return value of fun2(5) is
Consider the following C program.
#include <stdio.h> struct Ournode { char x, y, z; }; int main() { struct Ournode p = {'1', '0', 'a' + 2}; struct Ournode *q = &p; printf("%c, %c", *((char *)q + 1), *((char *)q + 2)); return 0; }
The output of this program is:
OnSite
1 Openings
FullTime
Posted 17 days ago