Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

Low_level_programming

Low_level_programming/000-hello_world Part 1

What happens when you type gcc main.c What is an entry point What is main How to print text using printf, puts and putchar

ADVANCE

000-hello_world

Learning Objectives

  • What happens when you type gcc main.c
  • What is an entry point
  • What is main
  • How to print text using printfputs and putchar
  • How to get the size of a specific type using the unary operator sizeof
  • How to compile using gcc
  • What is the default program name when compiling with gcc
  • What is the official C coding style and how to check your code with betty-style
  • How to find the right header to include in your source code when using a standard library function
  • How does the main function influence the return value of the program

100-intel

#!/bin/bash
gcc -S -masm=intel $CFILE

101-quote.c

#include <stdio.h>
#include <unistd.h>

/**
 * main - Entry point
 *
 * Return: Always 0 (Success)
 */
int main(void)
{
	write(2, "and that piece of art is useful\" - Dora Korpar, 2015-10-19\n", 59);
	return (1);
}

README.md

To make a readme file,

echo "whatever description " > README.md

If you have any questions please leave it on the comment box bellow.

#Complete the advance task here > https://scisiz.com/low_level_programming/

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
Low_level_programming

Low_level_programming/000-hello_world Part 1

Next Post
system_engineering-devops

system_engineering-devops part 2

Please Leave a comment on comment section, let me know what you think about this article.

Related Posts
Hey, if you have any questions and want to talk to one of our specialists chat up here:
Chat me up