Programming

Factorial using C programming

C program to find factorial of user given number – C programming guide

C program to find factorial of user given number – for beginner C program to find factorial | Let’s assume, Factorial of a positive number ‘n’ given by user factorial of n(n!) = 1 *  2 * 3 * ……. upto Nth number. Factorial of negative number is not possible. In simple word it doesn’t …

C program to find factorial of user given number – C programming guide Read More »

PHP-OOP-with-examples

Exception Handling with PHP – with examples

Exception Handling with PHP – with examples Exception Handling with PHP | PHP 5 came up with a replacement object-oriented way of handling errors. After PHP5 we will affect errors easily using the OOP concept. Exception handling is employed to vary the traditional flow of the code execution if a specified error (exceptional) condition occurs. …

Exception Handling with PHP – with examples Read More »

UDP socket programming in C

UDP Socket Programming in C language

UDP socket programming Client-side program: #include<stdio.h> #include<stdlib.h> #include<sys/socket.h> #include<netinet/in.h> #include<string.h> #include<netdb.h> int main(int argc, char * argv[]) { int sockfd,bindfd,fromlen,n; struct sockaddr_in server, from; struct hostent *hp; char buff[50]; if(argc<3) { printf(“insufficient argument”); exit(1); } sockfd=socket(AF_INET,SOCK_DGRAM,0); if(sockfd<0) { printf(“could not create the socket.”); exit(1); } server.sin_family=AF_INET; server.sin_port=htons(atoi(argv[2])); hp=gethostbyname(argv[1]); memcpy((char*)hp->h_addr,(char *)&server.sin_addr.s_addr,hp->h_length); fromlen=sizeof(server); printf(“Enter the value to …

UDP Socket Programming in C language Read More »

PHP tutorial in 2020

PHP beginner tutorials – zero to hero PHP course 2020

PHP beginner tutorials in 2020 | PHP beginner tutorials What is PHP? PHP beginner tutorials | PHP stands for Hypertext Preprocessor. PHP is a most powerful and widely-used open-source server-side scripting language. PHP scripting language is used to write dynamically generated web pages. PHP scripts are executed on the web servers and the final result …

PHP beginner tutorials – zero to hero PHP course 2020 Read More »

Ascending and Descending order in C programming.

Program to sort array in ascending and Descending order using C programming. Sort array in ascending and descending order Hello friends, In this article we will learn to write program to sort array in ascending and descending order using C programming Language using bubble sort Program to sort array in ascending order in C #include<stdio.h> …

Ascending and Descending order in C programming. Read More »

Java Basic Logic Building Programs and examples

JAVA Basic concepts and examples JAVA Basic concepts JAVA first program ‘Hello World’ Java Basic Logic Building Programs | Hello World is the simplest program in every programming language. You should start with this program if you are new in programming. public class HelloWorld { public static void main(String[] args) { HelloWorld helloWorld = new …

Java Basic Logic Building Programs and examples Read More »