technical questions
DESCRIPTION
TECHNICAL QUESTIONS. #include void main() { float x = 1.66, y = 1.75; printf(“%f%f”,ceil(x), floor(y)); }. TECHNICAL QUESTIONS. #include void main() { int x = 10, y =20; if(!(!x) && x) printf(“x = %d”,x); else printf(“y = %d“,y); }. TECHNICAL QUESTIONS. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/1.jpg)
#include<stdio.h>void main(){
float x = 1.66, y = 1.75;printf(“%f%f”,ceil(x), floor(y));
}
![Page 2: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/2.jpg)
#include<stdio.h>void main(){
int x = 10, y =20;if(!(!x) && x) printf(“x = %d”,x);else
printf(“y = %d“,y);}
![Page 3: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/3.jpg)
#include<stdio.h>void main(){
int a = 500, b=100,c;if(!a >= 400) b = 300;c = 200;printf(“b = %d c = %d”,b,c);
}
![Page 4: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/4.jpg)
#include<stdio.h>void main(){
int a = 10,b;a >= 5 ?b=100 :b=200;printf(“%d”,b);
}
![Page 5: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/5.jpg)
Which of the following cannot be checked in a switch - case statement?
a.Characterb.Integerc.Float
![Page 6: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/6.jpg)
Which of the following are unary operators in C?a.!b.sizeofc.~d.&&e.=
![Page 7: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/7.jpg)
#include<stdio.h>void main(){
static int a[20];int i = 0;a[i] = i++;printf(“%d%d%d”,a[0],a[1],i);
}
![Page 8: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/8.jpg)
#include<stdio.h>void main(){
int I = 3;i = i++;printf(“%d”,i);
}
![Page 9: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/9.jpg)
#include<stdio.h>void main(){
int x = 4,y,z;y = --x; z = x--;printf(“%d%d%d”,x,y,z);
}
![Page 10: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/10.jpg)
#include<stdio.h>void main(){
int x = 55;printf(“%d%d%d”,x<=55,x=40,x>=10);
}
![Page 11: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/11.jpg)
#include<stdio.h>#define SQR(x) (x * x)void main(){
int a, b =3;a = SQR(b+2);printf(“%d”,a);
}
![Page 12: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/12.jpg)
#include<stdio.h>void main(){
int arr[1] = {10};printf(“%d”, 0[arr]);
}
![Page 13: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/13.jpg)
If the array begins at address 1200 in memory, what will be the output of the program?
#include<stdio.h>void main(){
int a[] = {1,2,3,4,5};printf(“%u%u%u”,arr,&arr[0],&arr);
}
![Page 14: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/14.jpg)
#include<stdio.h>void main(){
float a[] = {1.2,2.4,3.5,4.5};printf(“%d”, sizeof(a) / sizeof(a[0]));
}
![Page 15: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/15.jpg)
#include<stdio.h>void main(){
printf(“%c”, “abcdefgh”[4]);}
![Page 16: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/16.jpg)
#include<stdio.h>void main(){
printf(5 + “Fascimile\n”)}
o/p : mile
![Page 17: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/17.jpg)
#include<stdio.h>void main(){
int I;printf(“%d”, scanf(“%d”,&i));
}
![Page 18: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/18.jpg)
#include<stdio.h>void main(){
char p[] = “%d\n”;p[1] = ‘c’;printf(p,65);
}
![Page 19: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/19.jpg)
#include<stdio.h>void main(){
char str[10] = “Angel”;str[6] = ‘d’;printf(“%s”,str);
}o/p : Angel
![Page 20: TECHNICAL QUESTIONS](https://reader030.vdocuments.mx/reader030/viewer/2022013004/56813aff550346895da399a5/html5/thumbnails/20.jpg)
#include<stdio.h>void main(){
char str[] = “Sales\0man\0”;printf(“%s”,str);
}o/p : Sales