What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-09 21:46:05
palindrome using recursion in c
/** * C program to check palindrome number using recursion */ #include <stdio.h> #include <math.h> /* Function declarations */ int reverse(int num); int isPalindrome(int num); int main() { int num; /* Input any number fr... Add solution -
Other 2021-10-09 03:30:05
WAP to read and print ‘n’ student details using structure and Dynamic Memory Allocation.
/*C program to read and print the N student details using structure and Dynamic Memory Allocation.*/ #include <stdio.h> #include <stdlib.h> /*structure declaration*/ struct student { char name[30]; int roll; float perc; }; i... Add solution -
Other 2021-10-08 11:13:07
how to change directories in c
#include<stdio.h> #include<unistd.h> int main() { char cwd[256]; if (chdir("Your desired path") != 0) perror("chdir() error()"); else { if (getcwd(cwd, sizeof(cwd)) == NULL) perror("getcwd() error&... Add solution