What do you want to save?
Add Code snippet
New code examples
-
C 2021-10-20 02:28:05
initialize char pointer c
//you should probably use dynamic memory allocation //this string is uninitialized and will cause errors char *str1; //this string is initialized, but you would have to come up with text //I would highly discourage using this method char *str2 = "Du... 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