C | Input and Output | Question 13

Last Updated :
Discuss
Comments
C
#include<stdio.h>

int main()
{
    char *s = "Geeks Quiz";
    int n = 7;
    printf("%.*s", n, s);
    return 0;
}
Geeks Quiz
Nothing is printed
Geeks Q
Geeks Qu
Tags:
Share your thoughts in the comments