This site works best with JavaScript enabled
Sign In
Discussions
Activity
Sign In
Previous Results
Introduction to C programming
11).Remove > from
Library function-#include character
1 |
#include
by
tech.vijaykr
March 2021
001 C Programming, Data Structures
permalink
Introduction to C programming
7).
Remove } in main
function-
#include
int main()
{
printf(“hello
world \n”);
return 0;
Compiler error -
hello.c: In function
‘main’:
hello.c:5:3: error:
expected declaration or statement at end of in…
by
tech.vijaykr
March 2021
001 C Programming, Data Structures
permalink
Introduction to C programming
Compiler error -
hello.c:1:9: fatal
error: stdioh: No such file or directory
1 |
#include
|
^~~~~~~~
compilation
terminated.
5).
Remove #from
preprocessor directive -
include
int main()
…
by
tech.vijaykr
March 2021
001 C Programming, Data Structures
permalink
Introduction to C programming
3).Remove () from main
function -
#include
int main{printf(“hello
world \n”);
return 0;
}
Compiler error -
hello.c:3:1: error:
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘{’ token
3 | {
| ^
4).
Remove . f…
by
tech.vijaykr
March 2021
001 C Programming, Data Structures
permalink
Introduction to C programming
Find 20 compile error from above program.
1.
Removed semicolon
from return statement : -
#include
int main()
{
printf(“hello
world \n”);
return 0
}
Compiler error -
: In function
‘main’:
hello.c…
by
tech.vijaykr
March 2021
001 C Programming, Data Structures
permalink
Introduction to C programming
Explain the complete c program build process in detail.
Answer :-
The C compilation
process converts the source code taken as input into object code .
The compilation
process can be divided into four steps -
a) pre-processor –
It scan …
by
tech.vijaykr
March 2021
001 C Programming, Data Structures
permalink
Introduction to C programming
STEP:
2
COMPILER
hello.c
file go to the compiler to compile (#gcc) it and created a new file
hello.s
hello.s
file expand it contains
Data
Section
Code
Section Declaration
Symbol
Table Definition ----> Declarati…
by
gupta1996riya
January 2021
001 C Programming, Data Structures
permalink
Introduction to C programming
There is the 4 steps
included:-PreprocessorCompilerAssemblerLinker
STEP:
1
PREPROCESSOR
hello.c
file is generated which is scan by preprocessor.
Preprocessor:-
Start with # and it works only on the lines in program. And stdio.h
is…
by
gupta1996riya
January 2021
001 C Programming, Data Structures
permalink
How C Programs Run?
What does compilation means?Compilation is a process in which any source code is converted into an object code with the help of a compiler. While compiling a source code which is let say a C program, the compiler will generate some files which are o…
by
bhatnagarashish1998
January 2021
001 C Programming, Data Structures
permalink
Introduction to C programming
C PROGRAM BUILD PROCESS
Step 1.First we write a code on editor and save it (say hello.c).The saved code goes in secondary memory. The editor used is vim editor .Command to enter in the vim editor is# vim.To enter in insert mode we press “i”To save …
by
swatiupendra1999
January 2021
001 C Programming, Data Structures
permalink
02. gcc Compiler Errors
02. gcc Compiler Errors
by
spatlou
January 2021
001 C Programming, Data Structures
permalink
Introduction to C programming
C PROGRAM BUILD PROCESS
Step 1.First we write a code on editor and save it (say hello.c).The saved code goes in secondary memory. The editor used is vim editor .Command to enter in the vim editor is# vim.To enter in insert mode we press “i”To save …
by
swatiupendra1999
January 2021
001 C Programming, Data Structures
permalink
Introduction to C programming
Build process in
C program
There are mainly 4
steps in which the full build process occurs in the C program.
1. Pr-processor
2. Compiler
3. Assembly
4. Linking
1. Pr-processor
It
include header f…
by
deepak4u106
January 2021
001 C Programming, Data Structures
permalink
02.Building, Configuring kernel for Device Driver Development
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
In file included from include/linux/compiler.h:48:0,
from include/linux/stddef.h:4,
from include/linux/posix_…
by
tanejasakshi1999
October 2020
005 Character Device Drivers Development
permalink
001.35.More Data Types And Libraries
1. “volatile variable –> don’t do compiler optimization for that variable“!
Compiler Optimizations does not apply to a volatile variable.
by
spatlou
September 2020
001 C Programming, Data Structures
permalink
17.Working With Gcc Compiler
We create a c program file “hello.c”.for compilation of hello.c file we use gcc .If we need hello.i file then use gcc -iAnd for hello.s file use gcc -s.
the phases of compilation is :-1. Lexical Analysis.2.Syntax Analysis.3.Intermediate code genera…
by
rajsaw9973
September 2020
001 C Programming, Data Structures
permalink
17.Working With Gcc Compiler
Working with gcc compiler...
first of all
, we create a file with touch command with extension .c
eg—hello.c
before the compilation ,it supply to the pre-processor...
pre-processor
create a file hello.i
=hello.i contain
…
by
adarshkr55
September 2020
001 C Programming, Data Structures
permalink
17.Working With Gcc Compiler
All queries, discussions, updates and clarifications related to 17.Working With Gcc Compiler
should be posted here.
by
spatlou
July 2020
001 C Programming, Data Structures
permalink
Session 07.Dynamic Memory Allocation
using reallocarray() API :
01. Implicit declaration of function reallocarray() is invalid in C99, leading to the compiler's seeing no declaration of the reallocarray() function. Therefore, we need a macro _GNU_SOURCE to explici…
by
mohitvaishnav962
June 2020
303 Linux System Programming
permalink
17.Working with Gcc Compiler
All queries, discussions, updates and clarifications related to Session.17.Working with gcc Compiler should be posted here.
by
spatlou
June 2020
001 C Programming, Data Structures
permalink
Powered by
Vanilla
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership