#include<stdio.h>#include<string.h>#include<ctype.h>int main(){int isupper(int c);char string[100];fgets(string,100,stdin);int index=0;for(int i=0;i<strlen(string);i++){if(isupper(string)){printf("%s",string);}}return 0;}
AsA
prog.cpp:12:12: error: cannot initialize a parameter of type 'int' with an lvalue of type 'char [100]' if(isupper(string)) ^~~~~~ prog.cpp:6:17: note: passing argument to parameter 'c' here int isupper(int c); ^ 1 error generated.
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!