What is scope rule in c?
No Answer is Posted For this Question
Be the First to Post Answer
what is y value of the code if input x=10 y=5; if (x==10) else if(x==9) elae y=8; a.9 b.8 c.6 d.7
How to convert decimal to binary in C using recursion??
Should a function contain a return statement if it does not return a value?
Explain what header files do I need in order to define the standard library functions I use?
write a string copy function routine?
Explain the difference between structs and unions in c?
What is return in c programming?
write a program whose output will be- 1 12 123 1234
Explain the difference between malloc() and calloc() in c?
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
What is the output from this program? #include <stdio.h> void do_something(int *thisp, int that) { int the_other; the_other = 5; that = 2 + the_other; *thisp = the_other * that; } int main(void) { int first, second; first = 1; second = 2; do_something(&second, first); printf("%4d%4d\n", first, second); return 0; }
will the program compile? int i; scanf(“%d”,i); printf(“%d”,i);