Note 1

Take Note:

Take a note while surfing.





Note With Ink

Give your Note a Colorful Tag.




Easy to Access

Stay on same information and in Sync wherever you are.

Note 2

Take Note:

Organize your information,It may take Shape.





Think With Ink

Differ your Content by Color.




Easy to Access

Easy to pull up your content from anywhere anytime.

Note 3

Take Note:

Don't Let information to miss,Because it take shape





Note With Ink

Simple an Easy Way to take a note.




Easy to Access

Get the same in next visit.


Please wait...

C Programming :: Basic Concepts

Home > C Programming > Basic Concepts > General Questions

Answer: Option E

Explanation:

User defined data types are: structure, union, enum

Workspace


Tags:  TCS

Answer: Option E

Explanation:

Derived data types are: array, function, pointer

Workspace


Tags:  TCS

63. int main()
{
int i = 20;
printf ("%x", i);
return 0;
}

Answer: Option A

Explanation:

The format specifier %x is used for displaying the number 20 in hexadecimal format. The corresponding hexadecimal value of 20 is 14

Hence, the correct option is A.

Workspace


Tags:  No Tags on this question yet!

Answer: Option C

Explanation:

C supports the following 2 methods of passing arguments to a function-

call by value method of passing arguments to function copies the actual value of the arguments into the formal parameter of the function. In this case, changes made to the parameter inside the function, have no effect on the argument.

On the other hand,

call by reference method of passing arguments copies the address of the argument into the formal parameter. Inside the function, the address is used to access the actual argument used in the call. It means the changes made to the parameter affect the passed argument.

Workspace


Tags:  No Tags on this question yet!

65. Point out the error in the program?

#include
int main()
{
char ch;
int i;
scanf("%c", &i);
scanf("%d", &ch);
printf("%c %d", ch, i);
return 0;
}

Answer: Option B

Explanation:

Here is no explanation for this answer

Workspace


Tags:  Capgemini

66. What is the output of the following 'C' program ?

#include
int main()
{
int i;
i=(2,3);
printf("%d",i);
}

Answer: Option B

Explanation:

Here is no explanation for this answer

Workspace


Tags:  Global Edge

67. What is the output of the following 'C' program ?

#include
int main()
{
char c;
scanf("%s",c);
}

Answer: Option A

Explanation:

Here is no explanation for this answer

Workspace


Tags:  Global Edge

68. How many bytes are required to create a 3*3 matrix using double pointer

Answer: Option A

Explanation:

Here is no explanation for this answer

Workspace


Tags:  Global Edge

69. What is the output of the following 'C' program ?

#include
int main()
{
int i= 0xffffffff;
printf("%d\n",i);
}
note: size of int is 4 bytes

Answer: Option A

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

Answer: Option C

Explanation:

The correct answer is Top-down approach.

C programming follows Top-down approach. It basically aims at decomposing solution into modules in a hierarchical manner.

The basic task of a top-down approach is to divide the problem into tasks and then divide tasks into smaller sub-tasks and so on. In this approach, first we develop the main module and then the next level modules are developed. 

Workspace


Tags:  No Tags on this question yet!



Most Popular Qs.

Latest MCQ Qs.