What are the three main types of returning values in C++?
What is the value of the expression i=1; i<<1%2?
What will be the output of the following C++ code?
#include
unsigned long int func(long int m)
{
int i ,j=0,sum=0;
for(i=m;i>1;i=i/2)
{
j++;
for(;j>1;j=j/2)
sum++;
}
return sum;
}
#include<stdio.h>
int main()
{
printf("%.3f\n",log(3.6));
return 0;
}
What is the output of the following C code?
#include<stdio.h>
int main()
{
int var = -10;
for(;var;printf("%d ",var++));
}
A compiler that compiles only the modified sections of the source code is called a(n):
What will be the output of the following C++ code?
#include<iostream>
using namespace std;
int main()
{
int i,j;
j=10;
i=(j++,j+100,999+j);
cout<<i;
return 0;
}
Which of the following are good reasons to use an object-oriented programming language?