How many header files are in c?
No Answer is Posted For this Question
Be the First to Post Answer
Explain the difference between exit() and _exit() function?
Explain the meaning of keyword 'extern' in a function declaration.
Why is struct padding needed?
How do you write a program which produces its own source code as output?
void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); }
Explain how do you print an address?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
what will be the output for the following main() { printf("hi" "hello"); }
Write an implementation of “float stringToFloat(char *str).” The code should be simple, and not require more than the basic operators (if, for, math operators, etc.). • Assumptions • Don’t worry about overflow or underflow • Stop at the 1st invalid character and return the number you have converted till then, if the 1st character is invalid return 0 • Don’t worry about exponential (e.g. 1e10), instead you should treat ‘e’ as an invalid character • Write it like real code, e.g. do error checking • Go though the string only once • Examples • “1.23” should return 1.23 • “1a” should return 1 • “a”should return 0
Why clrscr is used after variable declaration?
Tell us something about keyword 'auto'.
struct tag{ auto int x; static int y; };main() { struct tag s; s.x=4; s.y=5; printf(“%d”,s.x); }