fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. char a[] = "J@RODQ";
  6. char b = a;
  7. char c = a;
  8. printf("%c", b);
  9. printf("%c", c);
  10. return 0;
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:6:11: error: invalid conversion from ‘char*’ to ‘char’ [-fpermissive]
  char b = a;
           ^
prog.cpp:7:11: error: invalid conversion from ‘char*’ to ‘char’ [-fpermissive]
  char c = a;
           ^
stdout
Standard output is empty