Determine Output:#define square(x) x*xvoid main(){ int i; i = 64/square(4); printf("%d", i);} 64 16 4 None of These TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:void main(){ int i=10; i = !i>14; printf("i=%d", i); } 14 10 None of these 0 1 TRUE ANSWER : ? YOUR ANSWER : ?
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 You have lived for 0 seconds Run time error Enter your age: xyz You have lived for 0.00000 seconds Enter your age: xyz "after that program will stop" TRUE ANSWER : ? YOUR ANSWER : ?
What will be printed after execution of the following program code?main(){ printf("\\nab"); printf("\\bsi"); printf("\\rha"); } asiha haasi None of these absiha hai 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]); }} None of these The code is correct and runs successfully. The code is erroneous since the subscript for array used in for loop is in the range 1 to size. The code is erroneous since the values of array are getting scanned through the loop. The code is erroneous since the statement declaring array is invalid. TRUE ANSWER : ? YOUR ANSWER : ?
Which of following is not a valid name for a C variable? Examians Both A and B None of these Exam_veda Exam veda TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following code?void main(){ int a[10]; printf("%d %d", a[-1], a[12]);} Code will not compile Garbage vlaue Garbage Value 0 Garbage Value Garbage value 0 0 0 TRUE ANSWER : ? YOUR ANSWER : ?
If ASCII value of 'x' is 120, then what is the value of the H, ifH = ('x' – 'w' ) / 3; 0 2 1 3 TRUE ANSWER : ? YOUR ANSWER : ?
Comment on the following?const int *ptr; We cannot change the pointer ptr itself. We can change the pointer as well as the value pointed by it. Both of the above We cannot change the value pointed by ptr. TRUE ANSWER : ? YOUR ANSWER : ?