Expression Evaluation in C Programming In this C Programming Tutorial we will discuss about Operators, operands, operator precedence and associativity, Expression and expression evaluation in c programming examples. Generally expression solving questions are asked in GATE exam. Let’s start with operator introduction. What is an Operator ? Operator is a symbol or token in C […]
c programming notes for gate
C Programming GATE Questions and Answers
C Programming GATE Questions and Answers C programming GATE questions and Data Structure subject weightage in GATE exam is approx. 10 % every year in GATE CSE Exam. C Programming GATE Questions and Answers consists approx. 6 marks Out of 100 in GATE Exam. Today in this Tutorial we have explained Previous year C Programming […]
Conditional Statements in C Programming
Conditional Statements in C Programming Condition statements in C are used almost in every program written in the C programming language. This is a very important concept and a useful building block of programming construct. Every student should know how to use conditional statements in a C program ? The objective of this tutorial is to […]
Looping Statements in C Programming
Looping Statements in C Programming Looping statements in C are used to repeat a block of code or statements until a condition is satisfied. In C Programming there are three types of Loops For Loop While Loop Do-while Loop This tutorial covers the concepts of looping statements in c with example. Advantages of using loops have […]
Types of errors in c programming
Types of errors in c programming What are different types of errors in c ? Difference between syntax error and semantic error. How logical errors are different from run time errors?. Differentiate compiler and interpreter. In this technical article different types of errors in c programming are explained. This article also covers the difference between syntax […]
Program in C to Implement Lagrange’s Interpolation Formula
‘C’ program to implement Lagrange’s Interpolation formula. Theory and Concept – Interpolation formulae for equally Spaced Argument is important but as is well known they possess the disadvantage of requiring the values of the independent variable to be equally spaced. It is therefore desirable to have interpolation formulae with unequally space values of […]
What are Common Programming Errors ?
Most Common Programming Errors in C Hello Friends In this post, I am telling about some common programming errors that are mostly occurred at the time of writing a program in C Programming language. These errors are as follows: (1) Missing semicolon: Every C statement must end with a semicolon. A missing semicolon is confusion […]
Difference Between Syntax and Semantic Errors – [ Interview ]
Syntax and Semantic in Programming Language This tutorial covers the basic introduction of syntax and semantic with example. Difference between syntax and semantic errors is also explained. Some basic definition types questions are generally asked in Technical Interview. Here in this post we have answer these questions are explained properly. Students are kindly requested to […]
Dynamic Memory Allocation in C using malloc( ) and calloc()
Dynamic Memory Allocation in C using malloc() and calloc() function In this Tutorial, we will learn about dynamic memory allocation in C using malloc(), calloc() function. Syntax and the use of different functions for dynamic memory allocation in c have been explained in this Tutorial. The use of malloc(), malloc() , realloc() and free() functions are explained in […]
Program to copy the contents of one string to another string using a pointer
A C program to copy the contents of one string to another using a pointer method is: #include #include #include #define length 50 void main() { char *s1,*s2,c; int i=0; clrscr(); s1=(char*)malloc(length*sizeof(char)); s2=(char*)malloc(length*sizeof(char)); printf(“enter stringn”); gets(s1); while((c=*(s1+i))!=”) { s2[i]=c; i++; } s2[i]=”; printf(“Copied string isn”); printf(“%s”,s2); getch(); }
How to display the value of an integer variable through pointer ?
Accessing the value of an integer through pointer. A pointer is a variable which contains the address in memory of another variable. We can have a pointer to any variable type. The unary or monadic operator & gives the “address of a variable”. The indirection or dereference operator * gives the “contents of an object pointed to by […]
Pointer to structure in C
How to use a pointer to structure in C Programming? When pointer to structure is incremented then the pointer points to the next block of memory. As for example struct rec { int a; char b[10], *c; }; main() { struct rec *obj; obj=(struct rec *)malloc(sizeof(struct rec)); obj->a=10; strcpy(obj->b, “XYZ”); strcpy(obj->c, “ABC”); printf (“n%dt%st%s”,obj->a, obj->b, […]
Pointer in C Hackerrank Solution
Pointer in C Hancerrank Solution In this Pointer in C Programming Tutorial at first we will learn about basic concepts of pointer after that we will see some pointer in c hackerrank solution for the practice of computer science students. Frequently asked Questions Some frequently asked questions from pointer in c programming are given below […]
Structure in C Programming
Structure in C Programming Structure in C Programming is a collection of variables of different types under the same name. In simple words, structure in c programming is used to store different types of data elements. In this tutorial, we will learn about structure in c programming. We will learn the following concepts about structure in C […]
C Programming Interview Questions – Part 3
“C programming language is a very important programming language for freshers from technical interview point of view. Sometime interviewers ask some tricky questions. Interviewer also asks students to write some well known program in C programming language. In previous post I have posted some questions from C programming language. In this post again I am […]
Short Interview Questions from C Programming
” I am listing some of the important questions from C programming Language which are mostly asked during Technical interview for freshers. I hope all the students will like these questions and also suggest some other typical questions in comment.” […]
Basic Questions from C Programming !
” I am listing some of the important questions from C programming Language which are mostly asked during Technical interview for freshers. I hope all the students will like these questions and also suggest some other typical questions in comment.” […]
Objective Questions from C Programming Language
C is a common Programming language which is used for software development especially for system software. Objective from C programming language are generally asked in every written test related to computer job.In this post ,I am presenting some objective questions from C Programming.Try to attempt these related to computer job. objective Questions from C Programming 1.struct […]