What are static variables in c?
No Answer is Posted For this Question
Be the First to Post Answer
What is true about the following C Functions (a) Need not return any value (b) Should always return an integer (c) Should always return a float (d) Should always return more than one value
What are predefined functions in c?
what is the c.
is compiler do read the data line by line or not. ??
6 Answers LG Soft, Satyam, Tech Mahindra,
f=(x>y)?x:y a) f points to max of x and y b) f points to min of x and y c)error
What is wrong with this code such that it doesnt produce the input reversed? #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { char Space = ' '; char LineOfText; float count; LineOfText = getchar(); while ((LineOfText = getchar()) != '/n'); { count = strlen(LineOfText) - 1; while (count >= 0) { putchar(LineOfText[count]); count--; } } getchar(); return 0; }
what is differnence b/w macro & functions
Explain what are global variables and explain how do you declare them?
What is a 'null pointer assignment' error?
Is fortran still used today?
How can we open a file in Binary mode and Text mode?what is the difference?
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.