#include <stdio.h>#include <string.h> int main(void) { char dest[6]; char source[6]; strcpy(dest,source); while (*dest) { printf("%c",*dest++); } while (*source) {printf("%c",*source++); } return 0;}
Standard input is empty
prog.c: In function 'main': prog.c:10:38: error: lvalue required as increment operand while (*dest) { printf("%c",*dest++); } ^ prog.c:11:41: error: lvalue required as increment operand while (*source) {printf("%c",*source++); } ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!