What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-27 17:53:02
program to perform fundamental string functions in c
///fundamental string operation, lenth, concatenation, compare and copy strings without string.h #include <stdio.h> #include <stdlib.h> int find_length(char string[]) { int len = 0, i; for (i = 0; string[i] != '\0'; i++) { len... Add solution -
Other 2021-09-24 14:59:02
string constant pool
String uses a special memory location to reuse of String objects called String Constant Pool. String objects created without the use of new keyword are stored in the String Constant Pool part of the heap. It doesn't create the same string object if there ... Add solution -
Python 2021-09-17 06:59:02
armstrong number in python
num = 370 # Changed num variable to string, # and calculated the length (number of digits) order = len(str(num)) # initialize sum sum = 0 # find the sum of the cube of each digit temp = num while temp > 0: digit = temp % 10 sum += digit ** order... Add solution