How many categories of iterators are there in C++?
How many groups of output operations are there in C++?
How many groups of output operations are there in C++?
What does the scanf("%d %f %c", &a, &b, &c) function return if the user enters the input 12 ABC 12.34?
#include
What does the following C declaration mean?
int (*ptr)[10];
#include <iostream>
using namespace std;
int foo [] = {16, 2, 77, 40, 12071};
int n, result=0;
int main ()
{
for ( n=0 ; n<5 ; ++n )
{
result += foo[n];
}
cout << result;
return 0;
}
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
int a = 10;
if (a < 10)
{
for (i = 0; i < 10; i++)
cout << i;
}
else
{
cout << i;
}
return 0;
}
Which of the following is the correct way to interpret 'Hello World' as a single argument?
#include<stdio.h>
void func1(char* s1,char* s2)
{
char* temp=s1;
s1=s2;
s2=temp;
}
void func2(char** s1,char** s2)
{
char* temp=*s1;
*s1=*s2;
*s2=temp;
}
int main()
{
char* s1="Abekus" ;
char* s2="learning";
func1(s1,s2);
printf("%s %s",s1,s2);
func2(&s1,&s2);
printf("%s %s",s1,s2);
return 0;
}