Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ? rem = 3.14 % 2.1; rem = modf(3.14, 2.1); rem = fmod(3.14, 2.1); Remainder cannot be obtain in floating point division. TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char *p; p="%dn"; p++; p++; printf(p-2, 300);} 300 Error None of These %d\n TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output?void main(){ int a=10, b=20; char x=1, y=0; if(a,b,x,y){ printf("EXAM"); } } Compiler Error exam is printed Nothing is printed XAM is printed TRUE ANSWER : ? YOUR ANSWER : ?
What will be output after executing following code?#include# define a 10void main(){ printf("%d..", a); foo(); printf("%d", a);}void foo(){ #undef a #define a 50} 0 Error 10..50 10..10 TRUE ANSWER : ? YOUR ANSWER : ?
An array elements are always stored in ________ memory locations. Random None of these Sequential Sequential and Random TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program. void main() { int i=01289; printf("%d", i); } 713 0289 Syntax error 0713 1289 TRUE ANSWER : ? YOUR ANSWER : ?
The function scanf() returns ......... 0 1 The number of successful read input values. The actual values read for each argument. ASCII value of the input read. TRUE ANSWER : ? YOUR ANSWER : ?
Use of functions Enhances the logical clarity of the program. Makes the debugging task easier. Helps to avoid repeating a set of statements many times. Helps to avoid repeated programming across programs. All of these TRUE ANSWER : ? YOUR ANSWER : ?
When a function is recursively called all the automatic variables are stored in a .......... Queue Register Array Linked list Stack TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the given program?#include<stdio.h>void main(){int a=11,b=5;if(a=5) b++;printf("%d %d", ++a, b++);} 6 7 11 6 5 6 6 6 12 7 TRUE ANSWER : ? YOUR ANSWER : ?