logo

Crowdly

Browser

Додати до Chrome

Course 31709

Шукаєте відповіді та рішення тестів для Course 31709? Перегляньте нашу велику колекцію перевірених відповідей для Course 31709 в lms.aub.edu.lb.

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

Create a simple C application made of multiple source and header files.

Your application must contain at least these files:

- main.c

- math_utils.c

- math_utils.h

- message.c

- message.h

- Makefile

Requirements:

1. main.c should use functions declared in both math_utils.h and message.h.

2. math_utils.c should implement a very simple function such as add(int a, int b).

3. message.c should implement a very simple function such as printMessage().

4. Write a Makefile that builds the executable named app.

5. Use make to compile the program.

6. Run the program to show that it works.

7. Then modify one source file or one header file and run make again.

8. Show which files are recompiled.

Your submission must include screenshots from your Linux VM showing:

- the project files

- the Makefile

- the command make

- the program running successfully

- a file being modified

- the result of running make again

- your name visible in the screenshots

You may also paste your Makefile and source code in the answer box or upload them in a ZIP file.

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

When fopen() is not able to open a file, it returns

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

Which of the following true about FILE *fp

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

#include <stdio.h>

#define square(x) x*x

int main()

{

int x;

x = 36/square(6);

printf("%d", x);

return 0;

}

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

Output?

#include <stdio.h>

# define scanf "%s Geeks Quiz "

int main()

{

printf(scanf, scanf);

return 0;

}

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

Predict the output of following program?

#include <stdio.h>

#define MAX 1000

int main()

{

int MAX = 100;

printf("%d ", MAX);

return 0;

}

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

What is the output for the following code snippet?

#include <stdio.h>

#define A -B

#define B -C

#define C 5

int main()

{

printf("The value of A is %d\\n", A);

return 0;

}

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

What is the output of the following C program?

#include <stdio.h>

#define SQR(x) (x*x)

int main()

{

int a;

int b=4;

a=SQR(b+2);

printf("%d\\n",a);

return 0;

}

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

How do you allocate memory for a 2D array using pointers in C++?

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

What is the correct way to declare a constant pointer to an integer in C++?

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

Хочете миттєвий доступ до всіх перевірених відповідей на lms.aub.edu.lb?

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

Browser

Додати до Chrome