+ 9

Why in this code there is no output?

#include <stdio.h> int main() { char *str="12345"; printf("%s",*str); return 0; }

26th Jan 2019, 2:45 PM
Zhenis Otarbay
Zhenis Otarbay - avatar
1 Answer
+ 3
Remove the '*' in the printf
26th Jan 2019, 3:10 PM
Ulisses Cruz
Ulisses Cruz - avatar