View Code of Problem 43

#include <stdio.h>
 
int main(){
  char *arr;
  int i;
  scanf("%s",&str);
  for(i=0;arr[i]!='\0';i++){
    if(('a'<=arr[i]&&arr[i]<='z')||('A'<=arr[i]&&arr[i]<='Z')){
		printf("%c",arr[i]);
    }
  }
}
/*
Main.c: In function 'main':
Main.c:6:15: error: 'str' undeclared (first use in this function)
   scanf("%s",&str);
               ^
Main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
*/

Double click to view unformatted code.


Back to problem 43