Function Pointers in C Function Pointer that refers to the address of other function. We will passed variable, constants, structure variables to a function as argument. But have you ever tried or thought to pass a function as an argument to another function . If not, then let us do it together. At first sight it may appear a bit confusing to you but trust me it is as simple as writing “int main()”. It is used to pass the function address to the another function or create the array of function or create function inside the structure or create call back function used in layered software like AUTOSAR. Function_pointer_in_C Syntax : return_type(*pointer_name)(function_argument) example : void (*foo) (void); now foo can point to any function it should have return type of void and argument type is void. int add(int a , int b) { return a+b; } now i want to create varia
Embedded C interview Question in Bosch Hi i am posting Embedded C interview Question asked Bosch . Embedded C is widely used in Automotive domain.Bosch is the biggest manufacture of automotive component and software. Impotent topics in Embedded C : Conversions between Different Basis; Data Representations in Computers; Elements of Boolean Logic; Straight-Line Equation and Linear Interpolation; Basic Operations with Vectors and Matrixes; Number Representations in Computer Memory: Little Endian vs. Big Endian; Optional: Error Detection Codes. Introduction to the C Language What is a Programming Language? What is a Compiler? The C Language and its Advantages. C Syntax and Constructs. The Structure of a C Program. Steps to Compile a Program Compilation Phases; Multi-File Compilation; Header Files; The Linking Process; Building an Executable Version of a C Program; Debugging a C Program; Examining and Running a C Application Program. Data Types and Variables Data Types; Type Casti