+ 1
What is the output of this code???
main ( ) { char string [ ] = " Hello World "; display ( string ) ; } void display ( char * string ) { printf ( " % s " , string ) ; }
4 ответов
+ 4
Like this.
#include <stdio.h>
void display(char *string) {
printf("%s", string);
}
int main() {
char string[] = "Hello World";
display(string);
return 0;
}
+ 1
Like this, there is an error because ur function is after the main function and you called it
0
What language is it?
0
C language