When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
No Answer is Posted For this Question
Be the First to Post Answer
What is a function simple definition?
Explain what are header files and explain what are its uses in c programming?
Explain how can I right-justify a string?
write a progam to display the factors of a given number and disply how many prime numbers are there?
how to generate the length of a string without using len funtion?
Differentiate between the expression “++a” and “a++”?
What is alloca() and why is its use discouraged?
If I want to initialize the array like. int a[5] = {0}; then it gives me all element 0. but if i give int a[5] = {5}; then 5 0 0 0 0 is ans. what will I do for all element 5 5 5 5 5 in a single statement???
#include<stdio.h> #include<conio.h> void main() { clrscr(); int a=0,b=0,c=0; printf("enter value of a,b"); scanf(" %d %d",a,b); c=a+b; printf("sum is %d",c); getch(); }
write an algorithm to get a sentence and reverse it in the following format: input : I am here opuput: Here Am I note: first letter of every word is capiatlised
What is the real time usage volatile?
List some of the static data structures in C?