Tag Archives: programming languages

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

Posted in C, precise examples | Tagged , , , , | Leave a comment

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

Posted in C, precise examples | Tagged , , , , | 1 Comment

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

Posted in C, precise examples | Tagged , , , , | Leave a comment

Program to concatenate two strings

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

Posted in C, precise examples | Tagged , , , , , | Leave a comment

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:

Posted in C, precise examples | Tagged , , , , | Leave a comment

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

Posted in C, precise examples | Tagged , , , , | Leave a comment

Program to compare two strings

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

Posted in C, precise examples | Tagged , , , , | Leave a comment

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    

Posted in C, precise examples | Tagged , , , , | Leave a comment

Program to display 1 to ‘n’ numbers and display sum of 1 to ‘n’.

Code: View the code on Gist. Output: Enter the numbers you want to display:5 1       2      3      4      5 the sum from 1 to 5  =15

Posted in C, precise examples | Tagged , , , , | Leave a comment

The salient uses of PHP and it’s prime scopes .

  Introduction The full form of PHP is Personal Home Page. It is an HTML-embedded, server-side scripting language designed for web development. The inventor of PHP is   Rasmus Lerdorf  and invented in  1994 and appeared in the market in 1995. PHP is also … Continue reading

Posted in Blogs | Tagged , , , , , | Leave a comment