#include<stdio.h> int main() { char *s = "Geeks Quiz"; int n = 7; printf("%.*s", n, s); return 0; }
Standard input is empty
Geeks Q
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!