C Programming What will be printed after compiling and running the following code?main() { char *p; printf("%d %d",sizeof(*p), sizeof(p));} 1 2 2 2 1 1 2 1 1 2 2 2 1 1 2 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output?main() { char *p; p = "Hello"; printf("%cn",*&*p); } H None of these. Some address will be printed Hello H None of these. Some address will be printed Hello ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ? rem = fmod(3.14, 2.1); rem = 3.14 % 2.1; Remainder cannot be obtain in floating point division. rem = modf(3.14, 2.1); rem = fmod(3.14, 2.1); rem = 3.14 % 2.1; Remainder cannot be obtain in floating point division. rem = modf(3.14, 2.1); 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" Run time error Enter your age: xyz You have lived for 0 seconds Enter your age: xyz You have lived for 0.00000 seconds Enter your age: xyz "after that program will stop" Run time error Enter your age: xyz You have lived for 0 seconds Enter your age: xyz You have lived for 0.00000 seconds ANSWER DOWNLOAD EXAMIANS APP
C Programming Functions have .......... Block scope No scope at all File scope Local scope Function scope Block scope No scope at all File scope Local scope Function scope ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ printf("%d, %d", sizeof(int *), sizeof(int **));} 2, 2 2, 0 2, 4 4, 4 0, 2 2, 2 2, 0 2, 4 4, 4 0, 2 ANSWER DOWNLOAD EXAMIANS APP