Determine Output:void main(){ static char *s[] = {"black", "white", "yellow", "violet"}; char **ptr[] = {s+3, s+2, s+1, s}, ***p; p = ptr; ++p; printf("%s",*--*++p + 3); } et te ck ow TRUE ANSWER : ? YOUR ANSWER : ?
Use of functions Makes the debugging task easier. All of these Enhances the logical clarity of the program. Helps to avoid repeating a set of statements many times. Helps to avoid repeated programming across programs. TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the program ?#includevoid main(){ float arr[] = {12.4, 2.3, 4.5, 6.7}; printf("%d", sizeof(arr)/sizeof(arr[0]));} None of these 5 6 7 4 TRUE ANSWER : ? YOUR ANSWER : ?
The recursive functions are executed in a ........... Last In First Out order Random order Iterative order First In First Out order Parallel order TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following statements are correct about the program below?#include<stdio.h>void main(){ int size, i; scanf("%d", &size); int arr[size]; for(i=1; i<=size; i++) { scanf("%d", arr[i]); printf("%d", arr[i]); }} The code is erroneous since the values of array are getting scanned through the loop. The code is correct and runs successfully. None of these The code is erroneous since the statement declaring array is invalid. The code is erroneous since the subscript for array used in for loop is in the range 1 to size. TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#define square(x) x*xvoid main(){ int i; i = 64/square(4); printf("%d", i);} 64 None of These 16 4 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following function is more appropriate for reading in a multi-word string? scanf() None of these gets() puts() printf() TRUE ANSWER : ? YOUR ANSWER : ?
What is the output of the following program?#include<stdio.h>int c[10] = {1,2,3,4,5,6,7,8,9,10}; main(){ int a, b=0; for(a=0;a<10;++a) if(c[a]%2 == 1) b+=c[a]; printf("%d", b);} 20 30 None of these 24 25 TRUE ANSWER : ? YOUR ANSWER : ?
void main(){ int a=10, b; b = a++ + ++a; printf("%d %d %d %d", b, a++, a, ++a);}what will be the output when following code is executed? 22 13 14 14 22 14 12 13 12 10 11 13 22 11 11 11 22 12 12 13 TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:main(){ int i = 5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 54544 45445 45545 54554 TRUE ANSWER : ? YOUR ANSWER : ?