Huawei new placement papers Huwaei technical written test set 3 c questions shared by Gauri Hre some questions of Huwaei C and techncial questions
Huawei set 3 C question:
1.what is o/p
âª#âincludeâ¬<stdio.h>
int main()
{
int x=10,y=10,z=5;
int a=x<y<z;
printf("%d",a);
return 0;
}
2.#include<stdio.h>
int main()
{
int a=011|0x10;
printf("%d",a);
return 0;
}
3.#include<stdio.h>
âª#âdefine⬠call(x,y)x#âª#âyâ¬
main()
{
int x=10,y=20,xy=20
printf("%d",xy+call(x,y));
}
4.#include<sdtio.h>
main()
{
int a[10]={5};
printf("%d%d%d%",a[0],a[5],a[9]);
return 0;
}
5.#include<stdio.h>
main()
{
char a,b,c;
printf("%d",scanf("%c%c%c",&a,&b,&c));
}
input are A B C