What do you want to save?
Add Code snippet
New code examples
-
C 2022-03-27 21:35:04
Write a c code to create a data base of students using structure. The member variables are roll, grade, and marks. Create 3 structure variable of 3 different roll numbers and find out the roll number of the student who is having highest marks.
#include <stdio.h> struct student { char firstName[50]; int roll; float marks; } s[10]; int main() { int i; printf("Enter information of students:\n"); // storing information for (i = 0; i < 5; ++i) { ... Add solution -
Java 2022-03-27 21:35:04
Sort string array in case insensitive order and case sensitive order java
import java.util.Arrays; public class SortStringArrayDemo { public static void main(String[] args) { String[] fruits = new String[5]; fruits[0] = "Mango"; fruits[1] = "cherries"; fruits[2] = "Apple&q... Add solution -
Python 2022-03-27 21:25:09
python odd or even
# Python program to check if the input number is odd or even. # A number is even if division by 2 gives a remainder of 0. # If the remainder is 1, it is an odd number. num = int(input("Enter a number: ")) if (num % 2) == 0: print("{0} i... Add solution -
Other 2022-03-27 21:20:24
realloc
int ptr_new = *realloc(void *ptr, size_t size); Where 'ptr_new' is the new pointer you want to point to the required Dynamic memory, 'ptr' is the already existing pointer to a dynamic memory and 'size' is the new size of dynamic memory that you want to a... Add solution -
PHP 2022-03-27 21:10:46
php header 500
header("HTTP/1.0 500 Internal Server Error"); Add solution
Best helpers
Ranking is empty