C | Input and Output | Question 13
#include<stdio.h> int main() { char *s = "Geeks Quiz"; int n = 7; printf("%.*s", n, s); return 0; } |
chevron_right
filter_none
(A) Geeks Quiz
(B) Nothing is printed
(C) Geeks Q
(D) Geeks Qu
Answer: (C)
Explanation: .* means The precision is not specified in the format string, but as an additional integer value argument preceding the argument that has to be formatted.
Quiz of this Question
Recommended Posts:
- C | Input and Output | Question 9
- C | Input and Output | Question 3
- C | Input and Output | Question 11
- C | Input and Output | Question 12
- C | Input and Output | Question 5
- C | Input and Output | Question 6
- C | Input and Output | Question 8
- C | Input and Output | Question 13
- C | Input and Output | Question 13
- C | Input and Output | Question 2
- C | Input and Output | Question 13
- C | Input and Output | Question 4
- Basic Input and Output in C
- Input-output system calls in C | Create, Open, Close, Read, Write
- Output of C Program | Set 29



