C Programming Determine Output:void main(){ int a[] = {10,20,30,40,50}, j, *p; for(j=0; j<5; j++){ printf("%d" ,*a); a++; } p = a; for(j=0; j<5; j++){ printf("%d" ,*p); p++; }} 10 20 30 40 50 10 20 30 40 50 Error 10 20 30 40 50 Garbage Value None of These 10 20 30 40 50 10 20 30 40 50 Error 10 20 30 40 50 Garbage Value None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming The function scanf() returns ......... 0 The number of successful read input values. ASCII value of the input read. The actual values read for each argument. 1 0 The number of successful read input values. ASCII value of the input read. The actual values read for each argument. 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Comment on the following pointer declaration?int *ptr, p; ptr and p, both are pointers to integer. ptr and p both are not pointers to integer. ptr is pointer to integer, p may or may not be. ptr is a pointer to integer, p is not. ptr and p, both are pointers to integer. ptr and p both are not pointers to integer. ptr is pointer to integer, p may or may not be. ptr is a pointer to integer, p is not. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 5 5 5 2 5 5 2 4 4 2 4 5 5 5 5 2 5 5 2 4 4 2 4 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is right way to Initialize array? int n{} = { 2, 4, 12, 5, 45, 5 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; int n{} = { 2, 4, 12, 5, 45, 5 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the best answer.Prior to using a pointer variable None of these. It should be both declared and initialized. It should be declared. It should be initialized. None of these. It should be both declared and initialized. It should be declared. It should be initialized. ANSWER DOWNLOAD EXAMIANS APP