Have any question? support@careerarm.
com Register Login
HOME QUANTITATIVE APTITUDE HR INTERVIEW STUDY PLACEMENT
QUESTIONS MATERIAL
QUESTION
PAPER
Home » Blog » Technology » C Interview questions and answers for Freshers pdf download
AdChoices Search …
SEARCH
Downloading PDF
PDF Downloads
C Interview questions and answers for Freshers pdf Register For Free
download
Tag: C language, Technical hr interview questions Share 4 Tweet
C Interview questions and answers for Freshers experienced pdf
download
C Interview questions, How many of you won’t fear when you hear this. Why this becomes a scary question,
among other interview questions. Yes, these weigh the technical skill of the candidate to check whether
he/she will be apt for the relevant position. You may be a Fresher or an experienced, you may be a graduate of
B.E/B. Tech (ECE, civil, CSE, IT etc.), M. Tech, BSc or any other graduate, but you should be strong in this. We
provided the technical interview questions and answers in pdf format to download for your convenience.
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
All IT Company
Registration Links
Interview Round 1 -
Aptitude
Aptitude questions
Round 2 : Group discussion
10 Group discussion topics
RECENT POSTS
BASELINE TEST QUESTION
PAPERS MAHARASHTRA STD 2
TO 8 MATHS ENGLISH
CIVIL ENGINEERING INTERVIEW
QUESTIONS ANSWERS FREE
DOWNLOAD (PDF)
OFF CAMPUS FOR 2017 BATCH
FRESHERS PLACEMENT DRIVE IN
INDIA
BPO INTERVIEW QUESTIONS
ANSWERS FOR FRESHERS FREE
DOWNLOAD PDF
DELL INTERVIEW QUESTIONS
ANSWERS FRESHERS
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
PLACEMENT PAPERS PDF
ATHENAHEALTH INTERVIEW
QUESTIONS ANSWERS PDF
DOWNLOAD FRESHERS
HEXAWARE OFF CAMPUS 2017
BATCH PLACEMENT DRIVE
REGISTRATION
ZOHO OFF CAMPUS 2017 BATCH
PLACEMENT DRIVE
REGISTRATION PROCESS
TRB ANSWER KEY 2016 SEPT 17
LECTURERS EXAM PAPER
DOWNLOAD CUT OFF
TALATHI QUESTION PAPER
ANSWER MARATHI PDF
DOWNLOAD PREVIOUS PAPERS
C interview questions- Technical HR
CATEGORIES
Interview questions on C language Technical
ADMIT CARD
round programming basics with answer ANSWER KEY
APPLICATION FORMS
These C programming HR job interview questions are asked in almost all companies like TCS,
CTS (Cognizant), Capegemini, Infosys, Wipro, Honeywell, HCL and other big MNC’s. So you need to work hard HR INTERVIEW QUESTIONS
in learning the technical interview questions basics, so you can get through the next round of the interview INTERVIEW
with confidence.
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
To get the aptitude questions with answer which is in the previous round of this technical interview, click on NEWS
the below link, PLACEMENT
QUESTION PAPER
Quantitative aptitude questions and answers
RESULTS
RESUME
Top common interview questions on C SCHOOL
Find all the C language questions related to loops, strings, arrays, pointers, switch case, data structure, etc., in STUDY MATERIAL
the below list. TECHNOLOGY
AdChoices
TIME TABLE
Free PDF Down Load
Get Free Download
CATEGORIES
1. Define the null pointer? BANK EXAM
WEB DEVELOPMENT
Literally, this one points to nothing. The base address of the segment is pointed by the null pointer.
Example: float *ptr=(float *)0;
LATEST COURSES
2. Different storage class specifiers in C?
Auto
Static
Register Learn JAVA from
Extern scratch
3. What will be the output of the below given C program? Free
#include<stdio.h>
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
int main()
int x = 320; Android Tutorial for
Beginners
char *ptr; Free
ptr =( char *)&x;
printf(“%d “,*ptr);
return 0; Quantitative Aptitude Online
classes free + Video training
} Rs. 500.00
Answer: 64. Since the binary value of the number 320 is 00000001 01000000, the pointer points only the first
8bit and 64 is the decimal value.
TAGS
4. What are static functions? 10th result 12th result
Admit card admit card 2015
By default, functions are global in C. The keyword static before the function makes it static. Whenever we
answer key 2015 Aptitude
need to stop accessing functions we make them as static.
question papers
5. What is a dangling pointer? Aptitude
Questions C# CBSE
It is a pointer which doesn’t point the valid memory location. It emerges when an object is deallocated or Chhattisgarh Cover letter CSS3
deleted. CTET Curriculum Vitae Hall
ticket HR interview HTML5
6. Write a program for fibonacci series
IBPS ibps rrb key Interview
#include<stdio.h> questions Java JavaScript job
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
int main() fair Maharashtra MTS off
{
campus
Offcampus 2016
int first=0,second=1,third,i,n; placement
printf(“Enter the number of elements:”);
papers Quantitative
aptitude shortcut and
scanf(“%d”,&n); tricks question papers
Rajasthan result 2015 Resume
printf(“\n%d”,first,second); SSC Stenographer Syllabus TCS off
campus registration Technical
for(i=2;i<n;i++)
hr interview questions
{ Technical
interview
third=first+second;
questions Telangana
printf(“%d”,third);
TNPSC Topper list UI
design UPSC VAO
first=second;
second=third;
return 0;
Output for the program:
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
Enter the number of elements: 5
01123
7. What is meant by the scope of a variable? How variables are scoped in C?
All the identifiers were statically scoped in C. It is a part of a program where the variable may accessible
directly.
8. Differentiate malloc() and calloc()?
malloc()- allocates bytes of memory
calloc()- allocates blocks of memory
9. Using temporary variable, write a program to swap 2 numbers
#include<stdio.h>
int main()
int x, y, temp;
printf(” Enter the values for x & y: \n”);
scanf(“%d %d”,&x,&y);
printf(“Before applying swappping x=%d, y=%d \n”, x, y);
temp = x;
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
x = y;
y = temp;
printf(” After applying swapping x=%d, y=%d \n”, x, y);
return 0;
The output for this program is:
Enter the values for x & y: 5 6
Before applying swapping x=5, y=6
After applying swapping x=6, y=5
10. Differentiate pass by reference and pass by value?
Pass by reference: Inside the function any modification of parameters will reflect in the actual variables. Since
memory address actual variables passed as a parameter in a function.
Pass by value: Inside the function any modification of parameters will not reflect in the actual variables, Since
a copy of actual variables passed as a parameter in a function.
11. What is called nested loop?
A loop which turns within an another loop is the nested loop.
12. Write a program to check whether the given string is palindrome or not
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
#include <stdio.h>
#include<string.h>
int main()
char string2[15];
int i, length;
int flag = 0;
printf(“Enter any string: \n”);
scanf(“%s” , string 2);
length = strlen(string2);
for(i=0;i<length;i++)
if(string2 [i] != string2[length-i-1])
flag = 1;
break;
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
}
if (flag)
printf(“%s is not a palindrome \n”, string2);
else
printf(“%s is a palindrome \n” ,string2);
return 0;
Output for the program:
Enter any string: malayalam
malayalam is a palindrome
13. Define Syntax error?
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
A misspelled command or a misplaced symbol can lead to this syntax error. They are mistakes which are
made in the use of programming language.
14. List out the different types of control structures in programming?
Selection
Sequence
Repetition
The above are the three main control structures.
15. What is meant by debugging?
The process of recognizing the errors is said to be debugging which is done within the program. The errors
which are found during the process of compilation of a program can be removed by debugging and it gives the
expected program output.
16. Give the output of the program given below?
#include<stdio.h>
int main()
int x = 5;
void *m = &x;
int *ptr = m;
printf (“%u”,*ptr);
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
return 0;
Answer: 5. Without any type casting, void pointer and pointer holds any data type and void pointer
respectively.
17. What is meant by far pointer in C?
The pointer that can access the RAM’s whole the residence memory is said to be the far pointer. Otherwise, we
can also say it can point all the 16 segments.
18. What is said to be a local block?
Any portion that is bounded or enclosed by the left and right brace ({&}) of a C program is said to be a local
block.
19. Write a C program to check whether the given number is even or odd?
#include<stdio.h>
int main()
int x;
printf(” Enter the value of x: \n”);
scanf(“%d”, &x);
if (x % 2 == 0)
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
{
printf(“Given value is even\n”);
else
printf(“Given value is odd\n”);
return 0;
Output for the program:
Enter the value of x: 7
Given value is odd
20. Give the difference between ++a and a++?
“++a”- This is prefix increment. That is, variable a is incremented first and the resulting value is used in the
operation.
“a++”- This is postfix increment. That is, the current value a is used in the operation before the value a itself
incremented.
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
21. Write a program to find the factorial of a given number
include<stdio.h>
int main()
int i=1,a=1,num;
printf(“Enter any number: “);
scanf(“%d”,&num);
while(i<=num)
a=a*i;
i++;
printf(“Factorial of given number %d is %d”,num,a);
return 0;
Output for the program:
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
Enter any number: 4
Factorial of given number 4 is 24
22. When it is preferable to use a switch statement over an if statement?
Switch statements are preferable when the selections are made based on the single expression or variable.
23. To find the largest of three numbers, write a C program
#include<stdio.h>
int main()
int x, y, z;
printf(“Enter the values for x, y, z: \n”);
scanf(“%d %d %d”, &x,&y,&z);
if(x>y&&x>z)
printf(“x is larger than y & z”);
else if (y>x&&y>z)
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
{
printf(“y is larger than x & z”);
else if (z>x&&z>y)
printf(“z is larger than x & y”);
else
printf(“All are equal or any two of the values were equal);
return 0;
Output for the program:
Enter the values for x,y,z: 10 4 7
x is larger than y & z
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
24. Define recursion
If within a function a statement can call the same function, then the function is said to be recursive. It is
specified as rec().
For example:
rec(int a)
int b;
if (a==1)
return (1);
else
b=a*rec(a-1);
return (b)
25. Define the logical operators ion C?
To do logical operations in C, Logical operators are used. Generally there are three type of logical operators
used in C. They are,
Logical OR (Denoted as ||)
Logical AND (Denoted as &&)
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
Logical NOT (Denoted as !)
26. Differentiate do-while and while loops?
Only when the given condition is true, the xecution of while loop will be done.
But in do-while loop, while loop execution is done first before the condition is checked.
27. List out the different types of variable in C?
Global variable, local variable and environment variable.
28. Define typecasting?
The need to convert an expression/ variable of one data type to another data type involving arithmetic
expressions in C program is said to be typecasting.
Check out the videos on Technical C questions,
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
Get more C interview questions on our website.
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
Posted by Categories Date Comments
PRISCILLA N TECHNOLOGY OCTOBER 14, 2015 2 COMMENTS
Priscilla N
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
Previous post Next post
Interview tips for Freshers / Experienced- Top 10 steps to become a successful
Learn best skills entrepreneur young Entrepreneurs
14 October, 2015 14 October, 2015
2 COMMENTS
Egovtjobs February 4, 2016 Log in to Reply
Thanks for giving the interview Questions
Preethi February 10, 2016 Log in to Reply
It’s very useful to me. Thanks a lot
LEAVE A REPLY
You must be logged in to post a comment.
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
Vendor Dashboard
[email protected]
[email protected]
BECOME AN INSTRUCTOR?
Copyright Careerarm.com
Join thousand of instructors and earn money hassle free!
GET STARTED NOW
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API