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
Why is C language being considered a middle level language?
What is the output of the program #include<stdio.h> #include<conio.h> void main() {0 int i,j=20; clrscr(); for(i=1;i<3;i++) { printf("%d,",i); continue; printf("%d",j); break; } getch(); }
What are high level languages like C and FORTRAN also known as?
Can a pointer point to null?
What is pointer in c?
what is the difference between while and do while?
In scanf h is used for
What is the data segment that is followed by c?
what are brk, sbrk?
Explain which function in c can be used to append a string to another string?
number 2 plssssss help !!....using array.. turbo c.. create a program that will accept a number and determine if it is a happy number or an unhappy number.. example: enter a number : 7 7*7=49 then 4 and 9 4*4 and 9*9== 16 + 18 gives you 97 then 9 and 7 9*9 and 7*7 == 81 + 49 gives you 130 then 1 and 3 1*1 and 3*3 == 1 + 9 gives you 10 1*1 gives you 1 sample output: 7= 49= 16+81= 97= 81+49=130 =1+9=10 =1 "7 is a happy number" . if the last number is 2 then the number being inputed is not a happy number.
Given an array of numbers, except for one number all the others occur twice. Give an algorithm to find that number which occurs only once in the array.