What is the base data type of a pointer variable by which the memory would be allocated to it? float No data type int Depends upon the type of the variable to which it is pointing. unsigned int TRUE ANSWER : ? YOUR ANSWER : ?
Given b=110 and c=20, what is the value of 'a' after execution of the expression a=b-=c*=5? 110 450 -110 -10 10 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);} Compilation Error will print Hello World None of these. will print garbage value TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output?main() { char *p; p = "Hello"; printf("%cn",*&*p); } H Hello Some address will be printed None of these. TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following function is used to find the first occurrence of a given string in another string? strrchr() None of these strchr() strstr() strnset() TRUE ANSWER : ? YOUR ANSWER : ?
What is function? All of these Function is a block of code that performs a specific task. It has a name and it is reusable. Function is the fundamental modular unit. A function is usually designed to perform a specific task. Function is a block of statements that perform some specific task. TRUE ANSWER : ? YOUR ANSWER : ?
A function 'p' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as None of these. int(*p(char *))[] int *p(char *)[] int (*p) (char *)[] TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following statements are correct about an array?1. The array int num[26]; can store 26 elements.2. The expression num[1] designates the very first element in the array.3. It is necessary to initialize the array at the time of declaration.4. The declaration num[SIZE] is allowed if SIZE is a macro. 1, 4 2, 3 1 2, 4 None of these TRUE ANSWER : ? YOUR ANSWER : ?
The recursive functions are executed in a ........... Parallel order Last In First Out order Iterative order Random order First In First Out order TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following program?void main(){ int a, b, c, d; a = 3; b = 5; c = a, b; d = (a, b); printf("c=%d d=%d", c, d);} c=5 d=5 c=5 d=3 c=3 d=3 c=3 d=5 TRUE ANSWER : ? YOUR ANSWER : ?