Write a program for print infinite numbers
Answers were Sorted based on User's Feedback
Answer / chavidi
void main()
{
int i=0;
while()
{
printf("%d",i)
i++;
}
}
| Is This Answer Correct ? | 25 Yes | 12 No |
Answer / shani jaiswal
main()
{
static int i=0;
printf("%d",i);
i++;
main();
return 0;
}
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / greg
#include <math.h>
static void checkinfinit(double x)
{
if (isinf())
{
printf("Infinite\n");
}
}
int main(int argc, char **argv, char **envp)
{
checkinfinite(1.0);
}
| Is This Answer Correct ? | 3 Yes | 1 No |
what is the hardware model of CFG( context free grammar)
write a c program to find the roots of a quadratic equation ax2 + bx + c = 0
11 Answers CSC, St Marys, TATA,
Given an array of length N containing integers between 1 and N, determine if it contains any duplicates.
how to find greatet of 10 numbers without using array?
The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.
Are there namespaces in c?
how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n");
Explain two-dimensional array.
Two's compliment of -5
Explain what is the difference between null and nul?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
can we print any string in c language without using semicolon(;)(terminator) in whole program.