Approach-1: We use strtol() function to covert string to long integer. It is belongs to stdlib.h header file. The prototype of function is long int strtol(const char *str, char **endptr, int base) It converts the …
Note: x1, y1, x2, y2 are all double values. Approach-1: In this approach, we read values of x1, x2, x3, x4 and calculated the distance between those points. Remember the points must be of double …
This program is simple to understand how to declare(or define) variables. We use all types of variables and display the values using corresponding format specifiers.
Perimeter of rectangle: Perimeter of rectangle is given by the below formula is, Perimeter = 2 * (height + width) Approach-1: In this approach, we define the complete logic in main() function. We read the …
Approach-1: In this approach we simply used printf() function from stdio.h header file. We specified ‘#’ character in printf() function based on output pattern. Approach-2: In C programming, we can process and display the information …
TCS Technical Interview Experience: TCS conducts technical round after written test. Student should answer to questions asked by TCL Panel. They concentrate on branch, technical fields and resume based questions. Panel may the students to …
Who should learn C language? Now a days every programmer thinking that, C language not required to become programmer.C language plays important role in every programmer life.To become logically strong, we must learn C programming …
Technical Interview for Fresher: Technical interview round for interviewers to understand the skill set of student. Different companies follow different approach to test your skill. Technical interview includes written test with logical questions and system …
Interview Written Test: It is a part of recruitment process. Written test assess applicant’s skills, abilities and knowledge related to job. It conducts mostly as beginning step of interview or online before interview. Written job …