Huawei Computer-Science-Engineering-CS |   16754

Huawei Computer-Science-Engineering-CS

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

feedback