fork download
  1. #include <iostream>
  2. #include <stdio.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. char* s="abc%sabc";
  7. char a[100];
  8. sprintf(a,"The message is : %s",s);
  9. // your code goes here
  10. return 0;
  11. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty