Sollicitatievraag bij Qualcomm

void foo(char*a, char*b){ while(*a++ = *b**); return; } int main(){ char buf[20]; foo(buff,"Hello"); printf("%s",buff); } what is the output for this program?

Antwoorden op sollicitatievragen

Anoniem

31 okt 2013

There are two typos in the question corrected question below void foo(char*a, char*b){ while(*a++ = *b++); return; } int main(){ char buf[20]; foo(buf,"Hello"); printf("%s",buff); } out put: Hello

2

Anoniem

26 feb 2010

Are you sure it is while(*a++ = *b**); not while(*a++=*b++)

1