A preprocessor directive in C begins with symbol
How many types of exception guarantees are there in C++?
What is the output of the following C code?
int main()
{
printf("%d",sizeof(" "));
}
What is the output of the following C program?
#include<stdio.h>
void main()
{
float x = 'c';
printf("%f", x);
}
What is the problem in the following variable declaration?
1: float 2Abekus-PLAYER-Leader?;
Pick the right option.
Statement 1: A definition is also a declaration.
Statement 2: An identifier can be declared just once.
The difference between x and 'x' in a C++ program is:
Consider the following ANSI C program.
#include < stdio.h > int main( ) { int arr[4][5]; int i, j; for (i=0; i<4; i++) { for (j=0; j<5; j++) { arr[i][j] = 10 * i + j; } } printf("%d", *(arr[1]+9)); return 0; }
What is the output of the above program?
What happens when we use pass by reference
Consider the C code fragment given below.
typedef struct node { int data; node* next ; } node; void join(node* m, node* n) { node* p = n; while (p->next != NULL) { p = p->next; } p–>next = m; }
Assuming that m and n point to valid NULL- terminated linked lists, invocation of join will
OnSite
1 Openings
FullTime
Posted 17 days ago