Question
a.
char name[]=”SAM”
b.
char name[6]={‘S’,’A’,’M’}
c.
char name[6]={“S”,”A”,”M”}
d.
char name [6]={‘S’,’A’,’M’,’\0’}
Posted under Compiler Design
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. In which way can SAM be stored in an array
Similar Questions
Discover Related MCQs
Q. What is meaning of the following?
Int *ptr[20]
View solution
Q. int a[20]
What will be the size of above array elements?
View solution
Q. What is the meaning of following declaration?
Int arr[20]
View solution
Q. What does the following declaration mean? int (*a)[10] a is
View solution
Q. Which of the following gives the memory address of the first element in array tan?
View solution
Q. Which of the following correctly accesses the seventh element stored in tan?
View solution
Q. Which of the following is a two-dimensional array?
View solution
Q. What is the index number of the last element of an array with 29 elements?
View solution
Q. Pick the operators that associate from left to right
View solution
Q. Pick the operators that associate from the right
View solution
Q. Pick the operators that associate from the left
View solution
Q. Which of the following operators takes only integer operands ?
View solution
Q. Coercion
View solution
Q. The expression 5 – 2 – 3 * 5 – 2 will evaluate to 18, if – is left associative and
View solution
Q. If i=1 j=2,k=3, then what is the value of the expression
!((j + k) > (i + 5))
View solution
Q. Which of the following operators has the highest precedence?
View solution
Q. What value does the variable y have after ALL of the code above executes?
int x;
int y;
int z;
x=3;
y=4;
z = ++x * y++;
View solution
Q. What value does the variable x have after ALL of the code above executes?
int x;
int y;
int z;
x=3;
y=4;
z = ++x * y++;
View solution
Q. What value does the variable z have after ALL of the code above executes?
int x;
int y;
int z;
x=3;
y=4;
z = ++x * y++;
View solution
Q. What value does the variable a have after ALL of the code above executes?
int a;
int b;
a=1;
b=a++;
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Compiler Design? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!