C Programming Determine Output:main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 5 5 2 4 5 8 5 5 2 4 4 2 5 5 2 4 5 8 5 5 2 4 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program? #include\ int main(){ extern int i; i = 20; printf("%ld ", sizeof(i)); return 0; } Depends on the Compiler 4 2 Linker Error : Undefined symbol 'i' Depends on the Compiler 4 2 Linker Error : Undefined symbol 'i' ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the base data type of a pointer variable by which the memory would be allocated to it? unsigned int float Depends upon the type of the variable to which it is pointing. No data type int unsigned int float Depends upon the type of the variable to which it is pointing. No data type int ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is correct way to define the function fun() in the below program?#includevoid main(){ int a[3][4]; fun(a);} void fun(int p[][4]){} void fun(int *p[3][4]){} None of these void fun(int *p[][4]){} void fun(int *p[4]){} void fun(int p[][4]){} void fun(int *p[3][4]){} None of these void fun(int *p[][4]){} void fun(int *p[4]){} ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following comments about the ++ operator are correct? All of these It cannot be applied to an expression The operand can come before or after the operator It associates from the right It is a unary operator All of these It cannot be applied to an expression The operand can come before or after the operator It associates from the right It is a unary operator ANSWER DOWNLOAD EXAMIANS APP
C Programming If the two strings are identical, then strcmp() function returns true 0 -1 1 None of these true 0 -1 1 None of these ANSWER DOWNLOAD EXAMIANS APP