Ruby is a cross-platform interpreted language and pure object oriented programming language. Ruby has many features in common with other
Q50 What is use of typecast?
Converting a variable of data type one to another data type is called typecast and process is called typecasting. See
Q49 What is use of typedef ?
typedef is a keyword which is used to give a data type a new name, mainly it is used to
Q48 What is call by value and call by reference?
Please click on the link to know about call by value and call by reference.
Q47 What is function declaration and function definition?
Please click on the link to know about function declaration and function definition .
Q46 What is difference between inline function, C macro and constant?
Inline Function – The inline keyword put before a function makes it inline function. Inline keyword is used to make
Q45 What is function prototype?
Please click on the link to know about function prototype.
Q44 What is switch and if-else statement? Where do you use switch and if-else? Which one is more efficient?
Please click on link to know about switch statement and if-else statement. Usually both are equally efficient. The compiler implements
Q43 Write a C program to reverse odd bits or even bits of an integer.
For reversing each odd bits of a given number, simply do XOR ’^’ each of its 4 hex parts with
Q42 Write a C program to reverse the bits in an integer.
Given below a C program to reverse the bits in an integer. int main() { unsigned int num; /* Reverse the
Q41 What is the use of bitwise operators and shift operator?
We use bitwise and “&” to test if certain bit(s) are one or not. And’ing a value against a pattern
Q40 Write a C program to count number of bits set in an integer.
The simplest way is, use bitwise ‘&’ operator on each bit of number by shifting right one by one and
What are the advantages of using Python?
Python is one of the easiest free languages to learn and use, while at the same time being very powerful:
What is Python?
Python is a high-level general-purpose programming language that can be applied to many different classes of problems. It is an