+ 1

What is the output of this code???

main ( ) { char string [ ] = " Hello World "; display ( string ) ; } void display ( char * string ) { printf ( " % s " , string ) ; }

17th Feb 2024, 8:22 PM
hridoy ahmed
hridoy ahmed - avatar
4 ответов
+ 4
Like this. #include <stdio.h> void display(char *string) { printf("%s", string); } int main() { char string[] = "Hello World"; display(string); return 0; }
18th Feb 2024, 2:35 AM
Chris Coder
Chris Coder - avatar
+ 1
Like this, there is an error because ur function is after the main function and you called it
18th Feb 2024, 10:37 PM
Christophe
Christophe - avatar
0
What language is it?
17th Feb 2024, 8:54 PM
Annihilate
Annihilate - avatar
0
C language
17th Feb 2024, 8:56 PM
hridoy ahmed
hridoy ahmed - avatar