Category: C Programming
-
Dynamic string manipulation and memory allocation in C.
I need help writing a C program that reads a line of text from the user of an unknown length, dynamically allocates memory for it using malloc or realloc, reverses the string in place, and prints the result. The program must handle memory management properly, ensuring there are no memory leaks, and should free all…
-
Write a C Program to find a even numbers which hidden in 2 t…
Write a C Program to find a even numbers which hidden in 2 to 10 tables
-
what will be the output for the following C program?
#include <stdio.h> int main() { int a = 5; int b = a++ + ++a + a— – —a; printf(“%d %d”, a, b) return 0;}
-
Write a C program to reverse a string using pointers without…
Problem Description: Write a C program to reverse a string using pointers. The program should take a string input from the user and display both the original and reversed string. Technical Requirements: – Programming Language: C – Language Standard: C99 or later – Compiler: GCC (GNU Compiler Collection) – IDE: Code::Blocks / VS Code /…
-
Develop a C program to sort a given set of elements using Me…
#include<stdio.h> void merge(int [],int ,int ,int ); void part(int [],int ,int ); int main() { intarr[30]; inti,size; printf(“nt——- Merge sorting method ——- nn”); printf(“Enter total no. of elements : “); scanf(“%d”,&size); for(i=0; i<size; i++) { printf(“Enter %d element : “,i+1); scanf(“%d”,&arr[i]); } part(arr,0,size-1); printf(“nt——- Merge sorted elements nn”); for(i=0; i<size; i++) printf(“%d “,arr[i]); return 0;…
-
Correct program
REM to add record in an existing file CLS Open ”Record.Dat” FOR OUTPUT AS #1 AA: c4 B3 44 Input “Enter Name, Class and Roll No. “; Nm$, CI, Rn. Input #2, Nm$, CI, Rn. Input “More records”; Y$. IF UCASE$(Y$)=”y” THEN GOTO aa CLOSE “Record.dat”. END
-
NOTES ON C.A.
Based on the video from CA Wallah by PW, here is the detailed breakdown of the CA course as of 2026. The information aligns well with your summary but adds specific technical nuances regarding exam patterns, negative marking, and the “free education” aspect. 1. The Three Stages of CA The journey is a progressive 3-stage…
