Which of the following is the address operator?.
Lint is a ______
The constant's definition in the C language is ____
what is the output of the following code?
#include<iostream>
using namespace std;
#define x 90
int main()
{
int x=9;
cout<<x;
return 0;
}
Which of the following statement is manditory to use in c++ program after including library?
In function overriding, which statement is true?
what will be the output of the given program?
#include <bits/stdc++.h>
using namespace std;
int cnt=0;
int calc(int x, int y)
{
int c;
cnt++;
if(y==3)
{
return x/x/x;
}
else
{
c=calc(x,y/3);
return (c*c*c);
}
}
int main()
{
calc(19,90);
cout<<sqrt(cnt)<<"\n";
}
What will be the ASCII description for the decimal part of the output?
#include<bits/stdc++.h>
using namespace std;
int main()
{
string great[3][3]={{"SB","2"},{"PI","3"},{"CT","5"}};
for(int i=1;i>-1;i--)
{
for(int j=1;j>-1;j--)
{
cout<<great[j][i];
}
}
return 0;
}
Q.Name the variable whose value will remain the same(op/po) and what will be the value of other changeable variable;
#include<bits/stdc++.h>
using namespace std;
inline void car(float *x , float *y)
{
x = y;
*x+=25;
*y*=3;
}
int main()
{
float op=55 , po= 77;
car(&op,&po);
cout<<op<<" "<<po<<"\n";
return 0;
}
Following is the given code snippet, where n is the input variable, row is the row value & col is the column value for a certain pattern:
main(){
int row,col,n=4;
row = 1;
while(row<=n){
col = 1;
while(col<=n){
char ans=('A' + row + col - 2);
cout<<ans<<" ";
col++;
}
cout<<endl;
row++;
}
}
Above code displayes following output for the given n value,
A B C D
B C D E
C D E F
D E F G
Which of the given options produces the same given output, where row, col, n having the same meaning?