-
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.
Write a program to accept 20 numbers from the user
And count how many positive and how many negative and 0 numbers were entered!!
plsAccept two numbers from the user...
...and multiply these two numbers without using the multiplication operator!
using any loop!Accept an amount in rupees (indian currency ) from the user...
....and find the minimum number of notes to form that amount.
The denominations are 500,100,50,20,10,5,2,1 Rupee.
using any loop!!Read Specified Number of Elements
What function will read a specified number of elements from a file?
Return Multiple Values from Function
How to return multiple values in C language function?
Output of the C program
What is the output of the following code?
c
#include
void main()
{
int s=0;
while(s++
Ans