**Are you an EPFL student looking for a semester project?**

Work with us on data science and visualisation projects, and deploy your project as an app on top of GraphSearch.

Lecture# Introduction to C Programming

Description

This lecture introduces the basics of C programming, covering topics such as language families, implementation vs. language standard, C and Python comparison, syntax, data types, pointers, arrays, characters, and strings. It explains the structure of a C program, compilation with gcc, execution, and common workflows. The lecture also delves into the use of pointers in C, including passing arguments by reference, memory addresses, and pointer manipulation. Additionally, it covers numeric data types, compilation commands, and the importance of semicolons in C syntax.

Official source

This page is automatically generated and may contain information that is not correct, complete, up-to-date, or relevant to your search query. The same applies to every other page on this website. Please make sure to verify the information with EPFL's official sources.

Instructor

In course

ENG-270: Computational methods and tools

This course prepares students to use modern computational methods and tools for solving problems in engineering and science.

Related concepts (138)

Printf

The printf family of functions in the C programming language are a set of functions that take a format string as input among a variable sized list of other values and produce as output a string that corresponds to the format specifier and given input values. The string is written in a simple template language: characters are usually copied literally into the function's output, but format specifiers, which start with a character, indicate the location and method to translate a piece of data (such as a number) to characters.

Computational science

Computational science, also known as scientific computing, technical computing or scientific computation (SC), is a division of science that uses advanced computing capabilities to understand and solve complex physical problems. This includes Algorithms (numerical and non-numerical): mathematical models, computational models, and computer simulations developed to solve sciences (e.

Computational physics

Computational physics is the study and implementation of numerical analysis to solve problems in physics. Historically, computational physics was the first application of modern computers in science, and is now a subset of computational science. It is sometimes regarded as a subdiscipline (or offshoot) of theoretical physics, but others consider it an intermediate branch between theoretical and experimental physics - an area of study which supplements both theory and experiment.

Array (data type)

In computer science, array is a data type that represents a collection of elements (values or variables), each selected by one or more indices (identifying keys) that can be computed at run time during program execution. Such a collection is usually called an array variable or array value. By analogy with the mathematical concepts vector and matrix, array types with one and two indices are often called vector type and matrix type, respectively. More generally, a multidimensional array type can be called a tensor type, by analogy with the physical concept, tensor.

Higher-order function

In mathematics and computer science, a higher-order function (HOF) is a function that does at least one of the following: takes one or more functions as arguments (i.e. a procedural parameter, which is a parameter of a procedure that is itself a procedure), returns a function as its result. All other functions are first-order functions. In mathematics higher-order functions are also termed operators or functionals. The differential operator in calculus is a common example, since it maps a function to its derivative, also a function.

Related lectures (358)

Introduction to C ProgrammingENG-270: Computational methods and tools

Introduces fundamental C programming concepts, covering variables, control structures, functions, and pointers, with practical examples and exercises.

Code Generation LabCS-320: Computer language processing

Covers generating code for a compiler, translating an Amy program to WebAssembly, including memory management and pattern matching compilation.

Introduction to LabVIEWME-213: Programmation pour ingénieur

Covers the basics of LabVIEW, including its importance, history, functions, and tools available.

Introduction to C: Arrays and FunctionsENG-270: Computational methods and tools

Covers the basics of C programming, focusing on arrays and functions, including 1D and 2D arrays, string operations, dynamic memory allocation, and reading files.

Introduction to C ProgrammingENG-270: Computational methods and tools

Introduces the fundamentals of C programming, covering language families, data types, pointers, and compilation processes.