Default constructor has
What is the output of the code: printf("\n The number is %06d", 1234);
Which of the following is a User-defined data type?
#include <stdio.h>
#include <stdlib.h>
int main ()
{
int n, m;
n = abs(23);
m = abs(-11);
printf ("%d", n);
printf ("%d", m);
return 0;
}
#include <bits/stdc++.h>
using namespace std;
void swap(int a,int b){
int t=a;
a=b;
b=t;
}
int main() {
int a=3,b=4;
swap(a,b);
cout<<a<<" "<<b;
return 0;
}
What is the problem in the following declaration?
float 3bedroom;
#include <bits/stdc++.h>
using namespace std;
int main(){
double a = 21.09399;
float b = 10.20;
int c ,d;
c = (int) a;
d = (int) b;
cout << c <<' '<< d;
return 0;
}
realloc() function is used to
What does the following segment of code do?
fprintf(fp, “Copying!”);
What is the output of the following C program?
#include <stdio.h>
int main()
{
int a = 10;
switch(a)
{
case 10: printf("Ten"); break;
case 20: printf("Twenty");break;
case 30: printf("Thirty");break;
default: printf("Nothing");
}
return 0;
}