Question: What is the type of array which is accepted by the main () function to store the command line arguments? a) Depends on the datatype

 What is the type of array which is accepted by themain () function to store the command line arguments? a) Depends onthe datatype of the arguments b) 2-D Square Array c) Jagged Arrayd) 1-D array Answer B 0 0 What will be the outputof the following statement? (assuming the input is Smarter way to learn")

What is the type of array which is accepted by the main () 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 B 0 0 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 0 0 0 0 What is the output of the following C program? #include int main (int argv, char* argc[]) { int x = 280; char* ptr_p = (char*) &x; printf("%d ", * ptr_p); return 0; ) a) 24 b) 280 c)0 d) Compilation error Answer What is the output of the following program if the input is "x" (without double quotes) #include int test (char c[]) if (c = "x") return 1; else return 0; ) int main (int argv, char* argc[]) char c [10]; scanf("%s", c); printf("%d", test(c)); return 0 ) a) Compilation error b) 1 c)0 d) Segmentation fault Answer A C What is the output of the following C program? #include int main () printf ("%d", sizeof (2.7)); return 0; 1 a) 4 b) 8 c) 2 d) Compilation error Answer CD

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!