Posts

//Pointer to Function in C

  //Pointer to Function As we know we can create pointer to variables in C language.We can also create pointer to functions in C. Example: #include<stdio.h> void sum()//body of sum function {     int num1,num2,res;     num1=10;     num2=20;     res=num1+num2;     printf("\n The sum is %d",res); }//end of sum void subtract() //body of subtract function {     int num1,num2,res;     num1=100;     num2=20;     res=num1-num2;     printf("\n The subtraction is %d",res); }//end of subtract function int main() {     void (*fun_ptr)();//declaring pointer to function taking no                                            // arguments and also n...

Use of char pointer in C

 Use of char pointer if you want to understand the code, you need to think and imagine  every line of code and behave like compiler. Q:1 #include<stdio.h> int main() {     char *ch;//declaring character pointer     ch="compuhelp"; //assigning string to pointer      printf("\n String is %s",ch); }//end of main Q2:Assigning string array to character pointer. #include<stdio.h> int main() {     char *ch;     char str[15];     printf("Enter string :");     scanf("%s",str);     ch=str;     printf("\n String is %s",ch);     printf("\n Value of str is %s",str); }//end of main

Play With Characters in C Programming Language:

Play With Characters in C Programming Language: Write a program to accept a character from the user and display the character. Write a program to accept a character in lower case and display it in uppercase. Write a program to accept a character from the user and display its ASCII value. Write a program to accept a character in uppercase and display it in lowercase. Write a program to display the ASCII values of 0 and 9. Write a program to display the ASCII values from 0 to 9. Write a program to display the ASCII values of all characters from A to Z. Write a program to accept a character using getch(),getche() and getchar() functions and display the character. Write a program to let the user press any key on the keyboard until x  but count only how many upper case character keys are pressed on the keyboard? Q1 Solution: //program to accept a character from the user #include<stdio.h> int main() {     char ch;     printf("Enter a characte...

What is SEO ?

 What is SEO? SEO stands for Search Engine Optimization. Now the questiong is which first rises in my brain that is what is Search Engine? Search Engine: Engine which is used to search something. Now here engine means 

What is Programming

What is Programming? Programming is one of the most in demand skill required by all the IT Companies and also non IT Companies to meet their technological need.Most of the students want to learn programming very  effectively with real life examples but due to some of the reasons they don't get the right knowledge. Programming help us in our real life also because it helps you to think before doing anything.So don.t feel uncomfortable in learning. It's not difficult to learn it is like learning any other thing like learning car driving,learning cooking food and learning any other work. Like learning any other work dedication,commitment and practice are required it also requires the same. Which programming is best to build programming logic ? There are many programming languages , but to build your programming logic , C-language is best to have good knowledge of deep programming, because in C-language we come to know so many back-ends in which the new languages lag.So to build...