logo

Crowdly

Browser

Add to Chrome

Course 31709

Looking for Course 31709 test answers and solutions? Browse our comprehensive collection of verified answers for Course 31709 at lms.aub.edu.lb.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Identify the scope resolution operator
View this question

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.

View this question

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

0%
0%
0%
100%
View this question

Which of the following true about FILE *fp

0%
0%
100%
0%
View this question

#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%
View this question

Output?

#include <stdio.h>

# define scanf "%s Geeks Quiz "

int main()

{

printf(scanf, scanf);

return 0;

}

0%
0%
100%
0%
View this question

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%
View this question

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%
View this question

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%
View this question

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

0%
0%
100%
0%
View this question

Want instant access to all verified answers on lms.aub.edu.lb?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome