C Programming Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements? None of these arr[6] arr{6} arr{7} arr[7] None of these arr[6] arr{6} arr{7} arr[7] ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the value of sum after the following program is executed?void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );} 9 1 2 0.5 0.25 9 1 2 0.5 0.25 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the difference between a declaration and a definition of a variable? A definition occurs once, but a declaration may occur many times. A declaration occurs once, but a definition may occur many times. Both can occur multiple times, but a declaration must occur first. Both can occur multiple times, but a definition must occur first. There is no difference between them. A definition occurs once, but a declaration may occur many times. A declaration occurs once, but a definition may occur many times. Both can occur multiple times, but a declaration must occur first. Both can occur multiple times, but a definition must occur first. There is no difference between them. ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the best answer.Prior to using a pointer variable It should be initialized. It should be both declared and initialized. It should be declared. None of these. It should be initialized. It should be both declared and initialized. It should be declared. None of these. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of given program?#includevoid main(){ int i=1, j=-1; if((printf("%d", i)) < (printf("%d", j))) printf("%d", i); else printf("%d", j);} 1 -1 -1 1 complier error 1 -1 1 -1 1 -1 -1 1 complier error 1 -1 1 -1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is more appropriate for reading in a multi-word string? None of these scanf() puts() printf() gets() None of these scanf() puts() printf() gets() ANSWER DOWNLOAD EXAMIANS APP