Answered step by step
Verified Expert Solution
Question
1 Approved Answer
What is the type of array which is accepted by the main 0 function to store the command line arguments? a) Depends on the datatype
What is the type of array which is accepted by the main 0 function to store the command line arguments? a) Depends on the datatype of the arguments b) 2-D Square Array c) Jagged Array d) 1-D array Answer What will be the output of the following statement? (assuming the input is "Smarter way to learn") printf ("%s ", argv [ argc] ) ; a) (null) b) way to learn c) learn d) Segmentation Fault Answer What is the output of the following C program? include int main (int argv, char argc[1 int x = 280; char* ptr-p = (char*) &x; printf("%d ", * ptr-p); return 0: a) 24 b) 280 c) 0 d) Compilation error Answer A. What is the output of the following C program if the input is "x" (without double quotes) include int test (char cl) if (c-,"z") return 1: else return 0: int main (int argv, char* argc[1) char c [101 scanf ("%s", c); printf ("%d", test(c)); return 0: a) Compilation error b) 1 c) 0 d) Segmentation fault Answer What is the output of the following C program? tinclude int main () printf return ("%d", 0. sizeof (2.7f)); a) 4 b) 8 c) 2 d) Compilation error
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started