What will be the output of the following C code (run without any command line arguments)?#include int main(int argc, char *argv[]){while (argc--)printf("%s\n", argv[argc]);return 0;}

🎲 Try a Random Question  |  Total Questions in Quiz: 184  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
C Programming Practice Test: Pointers and Arrays in C — practice the complete quiz, review flashcards, or try a random question.

Pointers and Arrays in C quiz on: Pointers and addresses, function arguments, arrays, address arithmetic, character pointers and functions, multidimensional arrays, pointer arrays initialization, command line arguments and complicated declarations. Arrays: Arrays are used to store multiple elements of the same data type in a contiguous block of memory. The index of an array represents the position of an element, starting from 0. Arrays are static, which means that their size is fixed once they are declared. Pointers: Pointers are variables that store the address of another variable or array... Show more

What will be the output of the following C code (run without any command line arguments)?<br>#include <stdio.h><br>int main(int argc, char *argv[])<br>{<br>while (argc--)<br>printf("%s\n", argv[argc]);<br>return 0;<br>}