logo

Crowdly

Browser

Додати до Chrome

Coding Café

Шукаєте відповіді та рішення тестів для Coding Café ? Перегляньте нашу велику колекцію перевірених відповідей для Coding Café в dle.plaksha.edu.in.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

Execute the program executable by typing /home/sharing/cc/4-1 at the command prompt. Write a program to print such a pattern, which is generalisable for any number of lines. 

Переглянути це питання

FILE *fp1 = fopen("states.txt", "r");

while ((ch = fgetc(fp1)) != EOF)

          putchar(ch);

fclose(fp1);

Write the equivalent Unix command for the above code.

Переглянути це питання

fopen() can be used to read from or write into a file stream.

100%
0%
Переглянути це питання
The statement free(ptr); when used in the program does which of the following?

0%
0%
0%
0%
0%
Переглянути це питання
Pick all statements that allocate an array of 48 characters on the heap.

Переглянути це питання
Read from a file and double space the data i.e., every line should be double separated. Store this output in another file.

Переглянути це питання

The

file

/home/sharing/numbers.txt

contains

ten integers across seven lines. The task is to find out the average of these

ten integers and copy the integers as well as the average into another file

called

result.txt.

Additional

exercises:

  • Pick only those odd numbers from the ten

    numbers of the file and write these odd numbers, as well as their average into an

    output file.

  • Next, modify the original program so that

    instead of assuming the number of integers to be read from the file, the

    program reads till all the integers of the file are read.

Переглянути це питання

Write a program to implement the cp

command of Unix.

Переглянути це питання
Create a question that tests one's conceptual understanding of any of these topics - arrays, pointers, functions. The question you write down will be graded on the basis of its depth and clarity. (In case you are reproducing the question you found somewhere, write the source.)

Переглянути це питання

Which of the

following statements about arrays in C is correct?

0%
0%
0%
Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на dle.plaksha.edu.in?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome