Which of the following permits function overloading in C++?
Which of the following does not permit function overloading in C++?
In C/C++, function overloading is similar to which of the following?
In C/C++, overloaded functions are _____________
What happens when we pass an argument by reference in C++?
In C/C++, when our function doesn’t need to return anything, which of the following keyword should be used as return type in function definition?
What are the advantages of passing arguments by reference in C++?
A member function of a class can always access the data in __________ in C++.
Which of the following cannot be passed to a function as an argument in C++?
In C/C++, whenever const objects try to invoke non-const member functions, the compiler …………………
What is a function template in C++?
Which keyword is used for coming out of recursion?
Which is correct way to declare a function without defining in C/C++?
Which function declaration is illegal in C/C++?
Which of the following C/C++ functions will execute correctly?
Can we pass function in another function as parameter in C?
Value from a function is returned by which keyword?
Return-type of the function sqrt () in C/C++ is?
Which function declaration is illegal in C/C++?
What will be the data type returned for the following C function?
#include <stdio.h>
int func()
{
return (double)(char)5.0;
}
Find error in following C function declarations?
int func(int);
double func(int);
int func(float);
Which of the following functions is used to find the first occurrence of a given string in another string in C?
What should be used to read string with spaces in C?
In C, what will be returned by the statement strcmp("ABC", "ABC");?
Which of the following return-type cannot be used for a function in C?
In C, correct way to declare function foo() which accept array of structure as argument?
Which one is not possible for given below function in C++?
F00(&s.a); //where s is a variable of type struct and a is the member of the struct.
What will be the output of below program?
#include <stdio.h>
int *me()
{
int *p = 5;
return p;
}
int main()
{
int *k = me();
printf("%d", k);
}
The output of the C code below is
#include <stdio.h>
int *me();
int main()
{
int *k = me();
printf("hello ");
printf("%d", k[0]);
}
int *me()
{
int a[2] = {5, 8};
return a;
}
What will be the output of below C program?
#include <stdio.h>
void fun( int[ ] );
int main()
{
int ary[4] = {1, 2, 3, 4};
fun(ary);
printf("%d ", ary[0]);
}
void fun(int p[4])
{
int i = 10;
p = &i;
printf("%d ", p[0]);
}