What is the base data type of a pointer variable by which the memory would be allocated to it? unsigned int int Depends upon the type of the variable to which it is pointing. float No data type TRUE ANSWER : ? YOUR ANSWER : ?
Who is father of C Language? Dr. Gosling Dennis Ritchie James F. Codd Bjarne Stroustrup TRUE ANSWER : ? YOUR ANSWER : ?
What is function? All of these Function is a block of statements that perform some specific task. Function is the fundamental modular unit. A function is usually designed to perform a specific task. Function is a block of code that performs a specific task. It has a name and it is reusable. TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=10; i=!i>14; printf("i=%d", i);} 0 14 1 10 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the given program?#includevoid main(){float num=5.6;switch(num){case 5:printf("5");case 6:printf("6");default : printf("0");break;}printf("%d", num);} 0 5.600000 5 5.600000 6 5.600000 Complier error TRUE ANSWER : ? YOUR ANSWER : ?
What is the result of compiling and running this code?main(){ char string[] = "Hello World"; display(string);}void display(char *string){ printf("%s", string);} None of these. Compilation Error will print garbage value will print Hello World TRUE ANSWER : ? YOUR ANSWER : ?
What is the difference between a declaration and a definition of a variable? A definition occurs once, but a declaration may occur many times. Both can occur multiple times, but a declaration must occur first. Both can occur multiple times, but a definition must occur first. There is no difference between them. A declaration occurs once, but a definition may occur many times. TRUE ANSWER : ? YOUR ANSWER : ?
Any C program Need not contain any function. Must contain at least one function. Needs input data. None of these TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program.void main(){ printf("%d, %d", sizeof(int *), sizeof(int **));} 2, 2 4, 4 2, 4 2, 0 0, 2 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the program ?#include<stdio.h>void main(){ int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m);} 2, 3, 20 1, 2, 5 2, 1, 15 3, 2, 15 TRUE ANSWER : ? YOUR ANSWER : ?