A

@Adarsh222

integer to string

C
3 years ago
#include <stdio.h> #include <stdlib.h> int main() { // Declare a string to store the formatted output char str[10]; // Convert the integer 123 to a string sprintf(str, "%d", 123);

Why we send char pointers in a function but not only charters

C
3 years ago
In C, a character is a single byte, and a character pointer (char *) is a pointer to a single byte in memory. When you pass a character pointer to a function, you are passing a reference to the memory location of the character, rather than the ch

Funtion pointer pgm **

C
3 years ago
#include<stdio.h> #include<string.h> typedef int (*fnptr)(int,int); typedef char (*cptr)(char*,char*); int add(int a,int b){ int sum; sum=a+b; return sum;

Comparision between all sort pgms

C
3 years ago
https://www.geeksforgeeks.org/comparison-among-bubble-sort-selection-sort-and-insertion-sort/

Bubble sort

C
3 years ago
//https://www.geeksforgeeks.org/bubble-sort/ #include <stdio.h> int main() { int a[10]; int n; printf("enter the no of digits :- "); scanf("%d\n",&n); for(int i=0;i<n;i++){ scanf("%d",&a[i]);

Bubble sort

C
3 years ago
//https://www.geeksforgeeks.org/bubble-sort/ #include <stdio.h> int main() { int a[10]; int n; printf("enter the no of digits :- "); scanf("%d\n",&n); for(int i=0;i<n;i++){ scanf("%d",&a[i]);

Memory allocation for array stored

C
3 years ago
In C and C++, arrays can be stored in different areas of memory depending on their storage class and whether they are defined inside or outside a function. If an array has automatic storage class (also known as local variables), it is stored on

Memory allocation for struct stored

C
3 years ago
Structure In C and C++, structure variables can be stored in different areas of memory, depending on their storage class. If a structure variable has automatic storage class (also known as local variables), it is stored on the stack. The stack is

Insertion sort

C
3 years ago
// C program for insertion sort #include <math.h> #include <stdio.h> /* Function to sort an array using insertion sort*/ void insertionSort(int arr[], int n) { int i, key, j; for (i = 1; i < n; i++) { key = arr[i];// big one//k=1

imp interview algorithms

C
3 years ago
https://www.geeksforgeeks.org/top-10-algorithms-in-interview-questions/ https://www.geeksforgeeks.org/selection-sort/

open disk.h

C
3 years ago
/**************************************************************** * Project TCAM2 * (c) copyright 2022 * Company Harman International(India) Pvt. Ltd. * All rights reserved * Secrecy Level STRICTLY CONFIDENTI

open disk

C
3 years ago
/**************************************************************** * Project TCAM2 * (c) copyright 2022 * Company Harman International(India) Pvt. Ltd. * All rights reserved * Secrecy Level STRICTLY CONFIDENTI

Telimatics Cybersecurity

C
3 years ago
The telematics control unit is in a similar situation in terms of cyber-threats and possible attack vectors, because the TCU serves as a gateway between the external world and the IVN. Vulnerable on two fronts, it can be attacked via both

Telimatics

C
3 years ago
What is a Telematics Control Unit? In the automotive industry, a telematics control unit (TCU) is an embedded device onboard a car that wirelessly links the vehicle to cloud storage or other vehicles through V2X standards over a mobile network.

Cryptography and its Types

C
3 years ago
https://www.geeksforgeeks.org/cryptography-and-its-types/ Cryptography is technique of securing information and communications through use of codes so that only those person for whom the information is intended can understand it and process it. Thu

Memory Layout of C Programs

C
3 years ago
//https://www.geeksforgeeks.org/memory-layout-of-c-program/ //https://www.scaler.com/topics/c/memory-layout-in-c/ After compiling a C program, a binary executable file(.exe) is created, and when we execute the program, this binary file loads i

Storage classes

C
3 years ago
//https://www.geeksforgeeks.org/storage-classes-in-c/ Storage Classes are used to describe the features of a variable/function. These features basically include the scope, visibility and life-time which help us to trace the existence of a particula

Efficient way of char input if string size is not known

C
3 years ago
#include <stdio.h> #include<stdlib.h> #if 0 int main() {//string input char *a; a=(char*)malloc(sizeof(char)); scanf("%s",a); printf("%s",a); free(a);

How do char[] and char * differ?

C
3 years ago
vimp There are some differences. The s[] is an array, but *s is a pointer. For an example, if two declarations are like char s[20], and char *s respectively, then by using sizeof() we will get 20, and 4. The first one will be 20 as it is showi

Pre-increment and Post-increment in C/C++

C
3 years ago
In C/C++, Increment operators are used to increase the value of a variable by 1. This operator is represented by the ++ symbol. The increment operator can either increase the value of the variable by 1 before assigning it to the variable or can incr