Program to find if the entered number is prime or not using recursion.


Code: View the code on Gist. Output: Enter a number: 6 6 is not a prime number

Explore more now!

Program to swap value of two variables using pointer


Codes: View the code on Gist. outputs: Enter two numbers:   3     9 Before swapping  a=3   b=9 After   Swapping  a=9   b=3

Explore more now!

Program to copy one string to another string with and without using string handling function


Codes: With string handling functions: View the code on Gist. 1.Outputs: string s1: Elon Musk string s2: Elon Musk 2.Without string handling functions: View the code on Gist. 2.Outputs: Enter string s1: Nepal string s2:…

Explore more now!

Program to find the biggest among three numbers using pointer


Codes: View the code on Gist. Outputs: Enter three values: 0  2  26 The value of a: 0     b; 2      c:26 biggest number: 26

Explore more now!

Program to find the sum of all the elements of an array using pointers


Codes: View the code on Gist. Outputs: Enter the number:6 5  8  1  5  7 sum: 32

Explore more now!

Program to concatenate two strings


Codes: View the code on Gist. Outputs: Enter the first & last name: Mark Zuckerberg full name: MarkZuckerberg  

Explore more now!

Program to read a sentence and delete all the white spaces and repace all “.” by “:”


Codes: View the code on Gist. Output: Enter a string:Nepal is a small country. Nepalisasmallcountry:

Explore more now!

Program to read a sentence and count the number of words in that sencence


Codes: View the code on Gist. Output: Enter a sentence:I am fine. The number of words=3

Explore more now!

Program to compare two strings


Codes: View the code on Gist. Output: Enter string: L Messi Enter string: Ronaldo Entered strings are not equal.  

Explore more now!

Program to print the triangular pattern of string “UNIVERSITY”


Codes: View the code on Gist. Output: UN UNIV UNIVER UNIVERSI UNIVERSITY UNIVERSI UNIVER UNIV UN    

Explore more now!