PROGRAMMING AND PROBLEM SOLVING THROUGH ‘C’ LANGUAGE

1.5. What will assign in s, when we use the following pair of statements in c-program:
char *s;
s = “my car color is : white”;
A) first character of the string constant
B) complete string
C) address of the string storage
D) is a logical error

PROGRAMMING AND PROBLEM SOLVING THROUGH ‘C’ LANGUAGE

1.1. In a for loop with a multi statement loop body, semicolons should appear following:
A) the for statement itself
B) the crossing brace in the multiple statement loop body
C) each statement within the loop body and the test expression
D) each statement within the loop only

Worksheet KG Class