-
-
Open Files Simultaneously
How will you increase the allowable number of simultaneously open files?
-
-
-
Is it better to use malloc() or calloc()?
Both the malloc() and the calloc() functions are used to allocate dynamic memory. Each operates slightly different from the other. malloc() takes a size and returns a pointer to a chunk of memory at least that big: void *malloc( size_t size ); calloc() takes a number of elements, and the size of each, and returns a pointer to a chunk of memory at least big enough to hold them all: void *calloc(...
-
What is indirection?
If you declare a variable, its name is a direct reference to its value. If you have a pointer to a variable, or any other object in memory, you have an indirect reference to its value.
-
C Program Exectuion Stages
Briefly explain the stages in execution of C program ?How are printf and scanf statements statements being moved into final executable code?
-
What is storage class and what are storage variable ?
A storage class is an attribute that changes the behavior of a variable. It controls the lifetime, scope and linkage.There are five types of storage classes 1)auto 2)static 3)extern 4)register 5)typedef
-
Differentiate between a linker and linkage?
A linker converts an object code into an executable code by linking together the necessary build in functions. The form and place of declaration where the variable is declared in a program determine the linkage of variable.
-
What is a method?
A way of doing something, especially a systematic way; implies an orderly logical arrangement (usually in steps)
-
-
What is the output of this C Code?
c#include
void main()
{
printf(5+"fascimile");
}
-
C Program for pyramid
What will be the code in c to get the following output?A B C D E F G F E D C B AA B C D E F F E D C B AA B C D E E D C B AA B C D D C B AA B C C B AA B B AA A
How can you determine the maximum value that a numeric variable can hold?
For integral types, on a machine that uses two’s complement arithmetic (which is just about any machine you’re likely to use), a signed type can hold numbers from –2(number of bits – 1) to +2(number of bits – 1) – 1. An unsigned type can hold values from 0 to +2(number of bits) – 1. For instance, a 16-bit signed integer can hold numbers from –2^15 (–32768) to +2^15 – 1 (32767).
C is not platform dependent.Why?
we know that C is not platform independent.but if we make a program on a operating system and copy the same program on other os without any changes then this program will run after compiling and will give the same answer.
so if same program will run on other os then why C is not platform independent.
Swapping of two numbers
How to swap two numbers without using temporary variable?
Why integer range -32768 to 32768
Why integer range -32768 to 32768 and actual meaning of storage size 2 bytes ?
Write a function reverse which takes a strings as a parameter and prints it out in reverse.
Example:reverse (hello) prints out (olleh)
C program to find a two digit no.
Write a c program to find a two digit no.. the second digit of which is smaller than its first digit by four and the number was divided by the digits sum, the quotient would be 7.
Ans