Find the output of the given input
Find the output of the following prefix expression
*+2-2 1/-4 2+-5 3 1
#include<stdio.h>
int main()
{
int i=1,2,3;
printf("%d",i);
return 0;
}
Which of the following format specifiers is used to specify whether the given time is in AM or PM?
Which of the following is the correct syntax to access the first element of a pair p?
When is memory allocated for a function?
What will be the output of the following C code?
int main()
{
int a=1,b=2,c=3;
printf("%d %d %d", a, b, c);
return 0;
}
What is a template parameter?
Comment on the output of the following C code.
#include <stdio.h>
int main()
{
int i, n, a = 4;
scanf("%d", &n);
for (i = 0; i < n; i++)
a = a * 2;
}
What will be the output of the following C++ code?
#include <iostream>
#include <string>
using namespace std;
int main()
{
string s = "a long string";
s.insert(s.size() / 2, " * ");
cout << s << endl;
return 0;
}