Answer Posted / gandhi priyank
hello
and your answer is a very easy you can write c progaram
then you can write libary #include<stdio.h> insted of
#include"stdio.h"
| Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
What is call by value in c?
Why does everyone say not to use scanf? What should I use instead?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
What does the function toupper() do?
Is stack a keyword in c?
What is a pointer in c?
Explain what is a program flowchart and explain how does it help in writing a program?
What are the disadvantages of c language?
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
What language is lisp written in?
Explain what is the benefit of using #define to declare a constant?
Explain what are global variables and explain how do you declare them?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
What is the difference between text files and binary files?