C Programming Which of the following is the correct way of declaring a float pointer: *float ptr; float ptr; None of these float *ptr; *float ptr; float ptr; None of these float *ptr; ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is used to find the first occurrence of a given string in another string? strrchr() None of these strchr() strnset() strstr() strrchr() None of these strchr() strnset() strstr() ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of given program if user enter "xyz" ?#includevoid main(){float age, AgeInSeconds;printf("Enter your age:");scanf("%f", &age);AgeInSeconds = 365 * 24 * 60 * 60 * age;printf("You have lived for %f seconds", AgeInSeconds);} Enter your age: xyz "after that program will stop" Enter your age: xyz You have lived for 0 seconds Enter your age: xyz You have lived for 0.00000 seconds Run time error Enter your age: xyz "after that program will stop" Enter your age: xyz You have lived for 0 seconds Enter your age: xyz You have lived for 0.00000 seconds Run time error ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program if the array begins at address 65486?#includevoid main(){ int arr[] = {12, 14, 15, 23, 45}; printf("%u, %u", arr, &arr);} 65486, 65488 None of these 65486, 65487 65486, 65490 65486, 65486 65486, 65488 None of these 65486, 65487 65486, 65490 65486, 65486 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 8 5 5 2 4 5 2 5 5 2 4 4 8 5 5 2 4 5 2 5 5 2 4 4 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[][4]){} void fun(int *p[3][4]){} void fun(int p[][4]){} None of these void fun(int *p[4]){} void fun(int *p[][4]){} void fun(int *p[3][4]){} void fun(int p[][4]){} None of these ANSWER DOWNLOAD EXAMIANS APP