-
-
-
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 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 ?
-
-
-
-
C Code to print number in reverse
Write a program to print the given number in reverse order for e.g 123 as 321
-
-
How do you override a defined macro?
You can use the #undef preprocessor directive to undefine (override) a previously defined macro.
-
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 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]? "
-
BSS Data Segment
What is a bss data segment?
-
-
-
Tricky C Program
Write a C program to find a peculiar two digit number which is three times the sum of its digits.
Sum 0f 2 64 bits using 32 bits
Hi,the question is you have cpu that knows to docomputations on 32 bits(unsigned integer).write a function that find the sum of 2 64 bits numbers using this cpu?there is a struct:typedef struct{ int low;(32 bits) int high;(32 bits)}64bit;
Ans