Can we declare variables anywhere in c?
No Answer is Posted For this Question
Be the First to Post Answer
biggest of two no's with out using if condition statement
What are the advantage of c language?
write a program that accepts 3 numbers from the user. dispaly the values in a descending order.
main() { FILE *fs; char c[10]; fs = fopen(“source.txt”, ”r”); /* source.txt exists and contains “Vector Institute” */ fseek(fs,0,SEEK_END); fseek(fs,-3L,SEEK_CUR); fgets(c,5,fs); puts(c); }
Explain what is the difference between the expression '++a' and 'a++'?
main() { int i=400,j=300; printf("%d..%d"); }
Explain what is the difference between far and near ?
get any number as input except 1 and the output will be 1.without using operators,expressions,array,structure.don't print 1 in printf statement
Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;
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
Suggesting that there can be 62 seconds in a minute?
What is static and auto variables in c?