Question
(The programming language is C) True or False 1-1 In the declaration int *p, q; , both p and q are pointers. oT oF 1-2
(The programming language is C)
True or False 1-1 In the declaration int *p, q; , both p and q are pointers. oT oF
1-2 In the following definition of a struct, the struct student forms a new data type. struct student { char name[10] }; oT oF
1-3 You can write a comment with // comments or /* comments */ oT oF
1-4 If there is declaration int a[] = {2,4,6,8,10}, *p= a; a 's value is the first address of the array, then * (p++) 's value is 4. oT oF
1-5 In switch statement, the constant expressions after each case should be different with each other. oT oF
1-6 In C, the expression (x > y>z) means whether x is larger than y and y is larger than z. oT oF
1-7 If there are fewer initializers than the number of elements in the array, C automatically initializes the remaining elements to the last value of the list of initializers. oT oF
1-8 There is a declaration as following: char a[10], b[10]; Therefore, a==b is used to compare the two strings. oT oF
1-9 If the value of function strcmp(a,b) is less than 0, it means that the parameters of function might be wrong. oT oF
1-10 The name of one array is the address of the first element. oT oF
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