Can we declare variables anywhere in c?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

biggest of two no's with out using if condition statement

5 Answers  


What are the advantage of c language?

0 Answers  


write a program that accepts 3 numbers from the user. dispaly the values in a descending order.

3 Answers  


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); }

1 Answers   Vector,


Explain what is the difference between the expression '++a' and 'a++'?

0 Answers  






main() { int i=400,j=300; printf("%d..%d"); }

13 Answers   ME,


Explain what is the difference between far and near ?

0 Answers  


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

3 Answers  


Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;

2 Answers   Lucent,


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

6 Answers   Qualcomm,


Suggesting that there can be 62 seconds in a minute?

0 Answers  


What is static and auto variables in c?

0 Answers  


Categories