What is the base data type of a pointer variable by which the memory would be allocated to it? float int No data type unsigned int Depends upon the type of the variable to which it is pointing. TRUE ANSWER : ? YOUR ANSWER : ?
The function sprintf() works like printf(), but operates on .......... stdin stderr string Data file no such function in 'C'. TRUE ANSWER : ? YOUR ANSWER : ?
Which operator from the following has the lowest priority? Unary-operator Comma operator Division operator Conditional operator Assignment operator TRUE ANSWER : ? YOUR ANSWER : ?
A C variable cannot start with An alphabet A number A special symbol other than underscore Both of the above TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:void main(){ extern int i; i=20; printf("%d", sizeof(i));} Linker Error 20 Compiler Error 2 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int a[] = {10,20,30,40,50}, j, *p; for(j=0; j<5; j++){ printf("%d" ,*a); a++; } p = a; for(j=0; j<5; j++){ printf("%d" ,*p); p++; }} 10 20 30 40 50 10 20 30 40 50 None of These 10 20 30 40 50 Garbage Value Error TRUE ANSWER : ? YOUR ANSWER : ?
Comment on the following pointer declaration?int *ptr, p; ptr is pointer to integer, p may or may not be. ptr is a pointer to integer, p is not. ptr and p both are not pointers to integer. ptr and p, both are pointers to integer. TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ printf("%p", main);} None of These make an infinite loop Error Some address will be printed TRUE ANSWER : ? YOUR ANSWER : ?
What is the output of given program if user enter value 99?#include<stdio.h>void main(){int i;printf("Enter a number:");scanf("%d", &i); // 99 is given as input.if(i%5 == 0){printf("nNumber entered is divisible by 5"); }} Enter a number:99 Enter a number:99 Number is divisible by 5 complier error Run time error TRUE ANSWER : ? YOUR ANSWER : ?
In an expression involving || operator, evaluationI. Will be stopped if one of its components evaluates to falseII. Will be stopped if one of its components evaluates to trueIII. Takes place from right to leftIV. Takes place from left to right III and IV I and II II and III II and IV I and III TRUE ANSWER : ? YOUR ANSWER : ?