-
-
-
BSS Data Segment
What is a bss data segment?
-
How do you loop a program to display your name however times you want it to.
and to display " Hello %s!! Do you want to try again [Y/N]? "
-
-
Calculate the weighted average of a list of n numbers
Calculate the weighted average of a list of n numbers using the formula
xavg = f1x1+f2x2+ ….+ fnxn
where the f’s are fractional weighting factors, i.e.,
0 -
How do you override a defined macro?
You can use the #undef preprocessor directive to undefine (override) a previously defined macro.
-
-
C Code to print number in reverse
Write a program to print the given number in reverse order for e.g 123 as 321
-
-
-
-
C program for command line argument
Write c program to accepts file name at command line argument and coverts all characters in the file to uppercase ?
-
-
-
Global variables in c program
If i initialize a global array locally in main function i can still access those elements in other functions as if the elements of array were global whereas this is not the case if i do the same with other basic variables like int i.can someone explain?
-
-
-
-
C Interview Questions
Ans