Skip to content

prakharbhattreal/c-questions-pratice

Repository files navigation

C pratice Question

Do your C pratice from question

command you required to run these .c files

gcc file_name.c -o file_name
./file_name

Why Use calloc() Instead of malloc()?

Zero Initialization: Unlike malloc(), calloc() initializes all allocated memory to 0.

Union

A union in C is similar to a struct, but with one key difference: ➡️ In a union, all members share the same memory location. This means only one member can store a value at any given time.

📌 Call by Reference in C

Call by reference allows a function to modify the actual values of variables passed as arguments using pointers.

library used

  1. stdio.h .
  2. stdlib.h .
  3. string.h .

About

This C pratice question for Beginners. Question are related to 2nd semester PYQs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published