fork(7) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char name[] = "Mohit";
  5. printf("==%*.*s==\n", 7, 10, name);
  6. printf("==%*.*s==\n", -7, 10, name);
  7. return 0;
  8. }
  9.  
Success #stdin #stdout 0s 4244KB
stdin
Standard input is empty
stdout
==  Mohit==
==Mohit  ==