What will be the output of the following C++ code?
What will be the output of the following C++ code?
What will be the output of the following C code?
void main()
{
int I=5,*j,**k;
j=&I;
k=&j;
printf("%d%d%d",*j,**k,*(*k));
}
What is the correct syntax to send a 3-dimensional array as a parameter? (Assuming declaration int a[5][4][3];)
What is the difference between a normal(naive) array and a sparse array?
What will be the output of the following C code, if the system date is June 24, 2017?
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
time_t ct;
time(&ct);
printf("%s\n",ctime(&ct));
}
#include <bits/stdc++.h>
using namespace std;
int main()
{
char pi[] = "3.1415926535";
double pi_val = atof(pi);
cout << pi_val << "\n";
char acc_g[] = "9.8";
double acc_g_val = atof(acc_g);
cout << acc_g_val << "\n";
return 0;
}
#include<iostream>
int main()
{
double n1, n2;
std::cin >> n1 >> n2;
if (n1 == n2)
{
std::cout << "Equal" << std::endl;
}
else
{
std::cout << "Not equal" << std::endl;
}
return 0;
}
/*
Suppose user enters n1 as 9.99999999 and n2 as 10.0
*/
Consider the following program in C language:
#include <stdio.h> main() { int i; int *pi = &i; scanf("%d", pi); printf("%dn", i+5); }
Which one of the following statements is TRUE?
What will be the output of the following C++ code?
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int myints[] = {10, 20, 30, 30, 20, 10, 10, 20};
int mycount = count(myints, myints + 8, 10);
cout << mycount;
vector<int> myvector(myints, myints + 8);
mycount = count(myvector.begin(), myvector.end(), 20);
cout << mycount;
return 0;
}
OnSite
1 Openings
FullTime
Posted 17 days ago