Home » C Programming » Input & Output » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main(int argc, char** argv)
    {
    char *str = "Interveiw";
    int n = 3;
    printf("%10.*s", n, str);
    }
    1. Int(note:6 spaces after Int)
    2. Interveiw(note:2 spaces after myworld)
    3. Interveiw(note:2 spaces before myworld)
    4. Int
    5. None of these
Correct Option: A

Int(note:6 spaces after Int)



Your comments will be displayed only after manual approval.