Assignment 1 Write a simple Hello World program in C as specified below: • Call a function void hello(), that prints hello. • Call a function void world(), the prints world. • The function definitions...

1 answer below »

Assignment 1


Write a simple Hello World program in C as specified below:
• Call a function void hello(), that prints hello.
• Call a function void world(), the prints world.
• The function definitions for hello() and world() should be located in hello.c and
world.c respectively.
• The function prototypes for the two function should be declared in helloworld.h header
file.
• The main() function should be located in the file main.c.
• The final executable should be named helloworld1.o.
• The output of the program should be the string hello, world!\n.




Assignment 2


Modify the following c source code so that when it is compiled and run, the string “hello, world!\n” is displayed on the standard output device. Note that you cannot delete any of the lines, however you may add as many lines as you think you need. Deliverables: modified source code file



#include

#include


void modify_1(char *c);
void modify_2(char *c);


int main()
{
char str1[10];
char str2[15];



printf("%s, %s!\n", str1, str2);
}


void modify_1(char *c)
{
char *a_string = "hello";


}


void modify_2(char *c)
{
char *a_string = "world";


}



Answered 2 days AfterFeb 08, 2022

Answer To: Assignment 1 Write a simple Hello World program in C as specified below: • Call a function void...

Arun Shankar answered on Feb 11 2022
122 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here