Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
com/3854-c-interview-questions/
Home Blog Technology C Interview questions and answers for Freshers pdf download
Ads by Google
(http://www.careerarm.com/tag/c- Tweet
1 of 18 6/16/2017 7:58 PM
C Interview questions pdf and answers Freshers experienced http://www.careerarm.com/3854-c-interview-questions/
HOME(HTTP://WWW.CAREERARM.COM
)
Powered byPushify Deny Allow
(https://pushify.com)
QUANTITATIVE APTITUDE(HTTP://WWW.CAREERARM.COM
/437-QUANTITATIVE-APTITUDE-FORMULAS-SHORTCUTS/
)
HR INTERVIEW QUESTIONS
(HTTP://WWW.CAREERARM.COM/2484-
HR-INTERVIEW-QUESTIONS-ANSWERS-FOR-FRESHERS/
)
PLACEMENT(HTTP://WWW.CAREERARM.COM/PLACEMENT/
)
QUESTION PAPER(HTTP://WWW.CAREERARM.COM/QUESTION-PAPER/
)
BECOME AN INSTRUCTOR?
Interview questions onC language
Join thousand of instructors and earn money hassle free!
Technical roundprogramming basics
with answer
GET STARTED NOW
(HTTP://WWW.CAREERARM.COM/BECOME-A-TEACHER/
)
2 of 18 6/16/2017 7:58 PM
C Interview questions pdf and answers Freshers experienced http://www.careerarm.com/3854-c-interview-questions/
To get the aptitude questions with answer which is in the previous round
Have any question? support@careerarm.comDo you(mailto:support@careerarm.com
like to receive push notifications
) from
of this technical interview, click on the below link,
CareerArm
Register (http://www.careerarm.com/account/?action=register ) Login (http://www.careerarm.com/account/ )
You can turn it o whenever you like.
Quantitative aptitude questions and answers
HOME(HTTP://WWW.CAREERARM.COM
)
Powered byPushify Deny
(http://www.careerarm.com/437-quantitative-aptitude- Allow
(https://pushify.com)
formulas-shortcuts/) QUANTITATIVE APTITUDE
(HTTP://WWW.CAREERARM.COM
/437-QUANTITATIVE-APTITUDE-FORMULAS-SHORTCUTS/
)
PLACEMENT(HTTP://WWW.CAREERARM.COM/PLACEMENT/
)
Ads by Google
HTTP://WWW.CAREERARM.COM/QUESTION-PAPER/
)
Literally, this one points to nothing. The base address of the segment is
pointed by the null pointer.
BECOME AN INSTRUCTOR?
Auto
Static
Register
Extern
Join thousand of instructors and earn money hassle free!
int main()
intx = 320;
3 of 18 6/16/2017 7:58 PM
C Interview questions pdf and answers Freshers experienced http://www.careerarm.com/3854-c-interview-questions/
char*ptr;
Have any question? Do you(mailto:support@careerarm.com
support@careerarm.com like to receive push notifications
) from
Register
CareerArm
(http://www.careerarm.com/account/?action=register ) Login (http://www.careerarm.com/account/ )
ptr=( char *)&x;
You can turn it o whenever you like.
printf(%d,*ptr); HOME(HTTP://WWW.CAREERARM.COM
)
Powered byPushify Deny Allow
(https://pushify.com)
return0; QUANTITATIVE APTITUDE(HTTP://WWW.CAREERARM.COM
/437-QUANTITATIVE-APTITUDE-FORMULAS-SHORTCUTS/
)
}
HR INTERVIEW QUESTIONS
(HTTP://WWW.CAREERARM.COM/2484-
HR-INTERVIEW-QUESTIONS-ANSWERS-FOR-FRESHERS/
)
Answer: 64. Since the binary value of the number 320 is 00000001
(http://www.careerarm.com/
01000000, the pointer points) only the MATERIAL
STUDY rst 8bit and64 is the decimal
(HTTP://WWW.CAREERARM.COM/STUDY-MATERIAL/
)
value.
PLACEMENT(HTTP://WWW.CAREERARM.COM/PLACEMENT/
)
4. What arestatic functions?
QUESTION PAPER(HTTP://WWW.CAREERARM.COM/QUESTION-PAPER/
)
#include<stdio.h>
intmain()
BECOME AN INSTRUCTOR?
Join thousand of instructors and earn money hassle free!
{
int rst=0,second=1,third,i,n;
GET STARTED NOW
(HTTP://WWW.CAREERARM.COM/BECOME-A-TEACHER/
)
scanf(%d,&n);
printf(\n%d, rst,second);
4 of 18 6/16/2017 7:58 PM
C Interview questions pdf and answers Freshers experienced http://www.careerarm.com/3854-c-interview-questions/
for(i=2;i<n;i++)
Have any question? Do you(mailto:support@careerarm.com
support@careerarm.com like to receive push notifications
) from
CareerArm
Register (http://www.careerarm.com/account/?action=register ) Login (http://www.careerarm.com/account/ )
{
You can turn it o whenever you like.
01123
BECOME AN INSTRUCTOR?
where the variable may accessible directly.
#include<stdio.h>
int main()
5 of 18 6/16/2017 7:58 PM
C Interview questions pdf and answers Freshers experienced http://www.careerarm.com/3854-c-interview-questions/
{
Have any question? Do you(mailto:support@careerarm.com
support@careerarm.com like to receive push notifications
) from
CareerArm
intx, y, temp;Register (http://www.careerarm.com/account/?action=register ) Login (http://www.careerarm.com/account/ )
You can turn it o whenever you like.
return0;
BECOME AN INSTRUCTOR?
After applying swapping x=6, y=5
11. What is called nested loop?
6 of 18 6/16/2017 7:58 PM
C Interview questions pdf and answers Freshers experienced http://www.careerarm.com/3854-c-interview-questions/
HR INTERVIEW QUESTIONS
(HTTP://WWW.CAREERARM.COM/2484-
intmain() HR-INTERVIEW-QUESTIONS-ANSWERS-FOR-FRESHERS/
)
int ag = 0;
length = strlen(string2);
for(i=0;i<length;i++)
BECOME AN INSTRUCTOR?
if(string2 [i] != string2[length-i-1])
{
Join thousand of instructors and earn money hassle free!
ag = 1;
GET STARTED NOW
(HTTP://WWW.CAREERARM.COM/BECOME-A-TEACHER/
)
break;
7 of 18 6/16/2017 7:58 PM
C Interview questions pdf and answers Freshers experienced http://www.careerarm.com/3854-c-interview-questions/
if( ag)
Have any question? Do you(mailto:support@careerarm.com
support@careerarm.com like to receive push notifications
) from
CareerArm
Register (http://www.careerarm.com/account/?action=register ) Login (http://www.careerarm.com/account/ )
{
You can turn it o whenever you like.
malayalamis a palindrome
BECOME AN INSTRUCTOR?
A misspelled commandora misplaced symbol can lead to this syntax
error. They are mistakeswhich are madein the use of programming
language.
Join thousand of instructors and earn money hassle free!
14. List out the different types of control structures inprogramming?
8 of 18 6/16/2017 7:58 PM
C Interview questions pdf and answers Freshers experienced http://www.careerarm.com/3854-c-interview-questions/
PLACEMENT(HTTP://WWW.CAREERARM.COM/PLACEMENT/
)
intx = 5;
QUESTION PAPER(HTTP://WWW.CAREERARM.COM/QUESTION-PAPER/
)
void *m = &x;
int*ptr = m;
printf(%u,*ptr);
return0;
Answer: 5. Without any type casting, void pointer and pointerholds any
data type and void pointer respectively.
BECOME AN INSTRUCTOR?
17. What is meant by far pointer in C?
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?
9 of 18 6/16/2017 7:58 PM
C Interview questions pdf and answers Freshers experienced http://www.careerarm.com/3854-c-interview-questions/
#include<stdio.h>
Have any question? Do you(mailto:support@careerarm.com
support@careerarm.com like to receive push notifications
) from
CareerArm
Register (http://www.careerarm.com/account/?action=register ) Login (http://www.careerarm.com/account/ )
intmain()
You can turn it o whenever you like.
{ HOME(HTTP://WWW.CAREERARM.COM
)
Powered byPushify Deny Allow
(https://pushify.com)
intx; QUANTITATIVE APTITUDE(HTTP://WWW.CAREERARM.COM
/437-QUANTITATIVE-APTITUDE-FORMULAS-SHORTCUTS/
)
printf(Enter the value ofx:\n);
HR INTERVIEW QUESTIONS
(HTTP://WWW.CAREERARM.COM/2484-
HR-INTERVIEW-QUESTIONS-ANSWERS-FOR-FRESHERS/
)
scanf(%d,&x);
(http://www.careerarm.com/ ) STUDY MATERIAL(HTTP://WWW.CAREERARM.COM/STUDY-MATERIAL/
)
if(x % 2 == 0)
PLACEMENT(HTTP://WWW.CAREERARM.COM/PLACEMENT/
)
{
QUESTION PAPER(HTTP://WWW.CAREERARM.COM/QUESTION-PAPER/
)
printf(Givenvalue iseven\n);
else
printf(Givenvalue isodd\n);
BECOME AN INSTRUCTOR?
return0;
}
Join thousand of instructors and earn money hassle free!
Output for the program:
++a- This is pre x increment. That is, variable a is incremented rst and
10 of 18 6/16/2017 7:58 PM
C Interview questions pdf and answers Freshers experienced http://www.careerarm.com/3854-c-interview-questions/
HR INTERVIEW QUESTIONS
(HTTP://WWW.CAREERARM.COM/2484-
intmain() HR-INTERVIEW-QUESTIONS-ANSWERS-FOR-FRESHERS/
)
inti=1,a=1,num; PLACEMENT(HTTP://WWW.CAREERARM.COM/PLACEMENT/
)
scanf(%d,&num);
while(i<=num)
a=a*i;
i++;
BECOME AN INSTRUCTOR?
printf(Factorial of given number %d is%d,num,a);
return0;
Join thousand of instructors and earn money hassle free!
}
GET STARTED NOW
(HTTP://WWW.CAREERARM.COM/BECOME-A-TEACHER/
)
Output for the program:
11 of 18 6/16/2017 7:58 PM
C Interview questions pdf and answers Freshers experienced http://www.careerarm.com/3854-c-interview-questions/
HR INTERVIEW QUESTIONS
(HTTP://WWW.CAREERARM.COM/2484-
intmain() HR-INTERVIEW-QUESTIONS-ANSWERS-FOR-FRESHERS/
)
intx, y, z; PLACEMENT(HTTP://WWW.CAREERARM.COM/PLACEMENT/
)
QUESTION
printf(Enter the values forx, PAPER(HTTP://WWW.CAREERARM.COM/QUESTION-PAPER/
y, z: \n); )
scanf(%d%d %d,&x,&y,&z);
if(x>y&&x>z)
elseif (y>x&&y>z)
{ BECOME AN INSTRUCTOR?
Join thousand of instructors and earn money hassle free!
printf(yis larger thanx & z);
}
GET STARTED NOW
(HTTP://WWW.CAREERARM.COM/BECOME-A-TEACHER/
)
elseif (z>x&&z>y)
12 of 18 6/16/2017 7:58 PM
C Interview questions pdf and answers Freshers experienced http://www.careerarm.com/3854-c-interview-questions/
}
Have any question? Do you(mailto:support@careerarm.com
support@careerarm.com like to receive push notifications
) from
CareerArm
Register (http://www.careerarm.com/account/?action=register ) Login (http://www.careerarm.com/account/ )
else
You can turn it o whenever you like.
{ HOME(HTTP://WWW.CAREERARM.COM
)
Powered byPushify Deny Allow
(https://pushify.com)
printf(Allare equalor any two of the values were equal); APTITUDE(HTTP://WWW.CAREERARM.COM
QUANTITATIVE
/437-QUANTITATIVE-APTITUDE-FORMULAS-SHORTCUTS/
)
}
HR INTERVIEW QUESTIONS
(HTTP://WWW.CAREERARM.COM/2484-
HR-INTERVIEW-QUESTIONS-ANSWERS-FOR-FRESHERS/
)
return0;
(http://www.careerarm.com/ ) STUDY MATERIAL(HTTP://WWW.CAREERARM.COM/STUDY-MATERIAL/
)
}
PLACEMENT(HTTP://WWW.CAREERARM.COM/PLACEMENT/
)
Output for the program:
QUESTION PAPER(HTTP://WWW.CAREERARM.COM/QUESTION-PAPER/
)
Enter the values for x,y,z: 10 4 7
24. De ne recursion
If within a function a statement can call the same function, then the
function is said to be recursive. It is speci ed as rec().
For example:
rec(int a)
{ BECOME AN INSTRUCTOR?
intb;
Join thousand of instructors and earn money hassle free!
if(a==1)
GET STARTED NOW
(HTTP://WWW.CAREERARM.COM/BECOME-A-TEACHER/
)
return(1);
else
b=a*rec(a-1);
13 of 18 6/16/2017 7:58 PM
C Interview questions pdf and answers Freshers experienced http://www.careerarm.com/3854-c-interview-questions/
return(b)
Have any question? Do you(mailto:support@careerarm.com
support@careerarm.com like to receive push notifications
) from
CareerArm
Register (http://www.careerarm.com/account/?action=register ) Login (http://www.careerarm.com/account/ )
}
You can turn it o whenever you like.
HR INTERVIEW QUESTIONS
(HTTP://WWW.CAREERARM.COM/2484-
Logical OR (Denoted as ||) HR-INTERVIEW-QUESTIONS-ANSWERS-FOR-FRESHERS/
)
Logical AND(Denoted as &&)
(http://www.careerarm.com/ ) STUDY MATERIAL(HTTP://WWW.CAREERARM.COM/STUDY-MATERIAL/
)
Logical NOT(Denoted as !)
But in do-while loop, while loop execution is done rst before the
condition is checked.
28. De ne typecasting?
BECOME AN INSTRUCTOR?
data type involving arithmetic expressions in C program is said to be
typecasting.
14 of 18 6/16/2017 7:58 PM
C Interview questions pdf and answers Freshers experienced http://www.careerarm.com/3854-c-interview-questions/
HOME(HTTP://WWW.CAREERARM.COM
)
Powered byPushify Deny Allow
(https://pushify.com)
QUANTITATIVE APTITUDE(HTTP://WWW.CAREERARM.COM
/437-QUANTITATIVE-APTITUDE-FORMULAS-SHORTCUTS/
)
HR INTERVIEW QUESTIONS
(HTTP://WWW.CAREERARM.COM/2484-
HR-INTERVIEW-QUESTIONS-ANSWERS-FOR-FRESHERS/
)
PLACEMENT(HTTP://WWW.CAREERARM.COM/PLACEMENT/
)
QUESTION PAPER(HTTP://WWW.CAREERARM.COM/QUESTION-PAPER/
)
BECOME AN INSTRUCTOR?
Join thousand of instructors and earn money hassle free!
15 of 18 6/16/2017 7:58 PM
C Interview questions pdf and answers Freshers experienced http://www.careerarm.com/3854-c-interview-questions/
HOME(HTTP://WWW.CAREERARM.COM
)
Powered byPushify Deny Allow
(https://pushify.com)
QUANTITATIVE APTITUDE(HTTP://WWW.CAREERARM.COM
/437-QUANTITATIVE-APTITUDE-FORMULAS-SHORTCUTS/
)
HR INTERVIEW QUESTIONS
(HTTP://WWW.CAREERARM.COM/2484-
HR-INTERVIEW-QUESTIONS-ANSWERS-FOR-FRESHERS/
)
PLACEMENT(HTTP://WWW.CAREERARM.COM/PLACEMENT/
)
QUESTION PAPER(HTTP://WWW.CAREERARM.COM/QUESTION-PAPER/
)
Posted by
PRISCILLA N (HTTP://WWW.CAREERARM.COM/AUTHOR/PRISCILLA/)
Categories
TECHNOLOGY (HTTP://WWW.CAREERARM.COM/TECHNOLOGY/)
Date
OCTOBER 14, 2015
Comments
2 COMMENTS (HTTP://WWW.CAREERARM.COM/3854-C-INTERVIEW-QUESTIONS
/#COMMENTS)
BECOME AN INSTRUCTOR?
Join thousand of instructors and earn money hassle free!
Priscilla N (Http://www.careerarm.com
/author/priscilla/)
16 of 18 6/16/2017 7:58 PM
C Interview questions pdf and answers Freshers experienced http://www.careerarm.com/3854-c-interview-questions/
QUESTION PAPER(HTTP://WWW.CAREERARM.COM/QUESTION-PAPER/
)
LEAVE A REPLY
BECOME AN INSTRUCTOR?
You must be logged in (http://www.careerarm.com/access
Join thousand of instructors and earn money hassle free!
/?redirect_to=http%3A%2F%2Fwww.careerarm.com%2F3854-c-interview-
questions%2F) to post a comment.
17 of 18 6/16/2017 7:58 PM
C Interview questions pdf and answers Freshers experienced http://www.careerarm.com/3854-c-interview-questions/
Vendor
Have any question? Do you(mailto:support@careerarm.com
support@careerarm.com like to receive push notifications
) from
Dashboard
CareerArm
Register (http://www.careerarm.com/account/?action=register ) Login (http://www.careerarm.com/account/ )
(http://www.careerarm.com
contact@careerarm.com You can turn it o whenever you like.
/vendor_dashboard/
(mailto:contact@careerarm.com)
HOME(HTTP://WWW.CAREERARM.COM )
Powered byPushify Deny Allow
support@careerarm.com
(https://pushify.com)
(mailto:support@careerarm.com) QUANTITATIVE APTITUDE(HTTP://WWW.CAREERARM.COM
/437-QUANTITATIVE-APTITUDE-FORMULAS-SHORTCUTS/
)
HR INTERVIEW QUESTIONS
(HTTP://WWW.CAREERARM.COM/2484-
HR-INTERVIEW-QUESTIONS-ANSWERS-FOR-FRESHERS/
)
(http://www.careerarm.com/ ) STUDY MATERIAL(HTTP://WWW.CAREERARM.COM/STUDY-MATERIAL/
)
PLACEMENT(HTTP://WWW.CAREERARM.COM/PLACEMENT/
)
QUESTION PAPER(HTTP://WWW.CAREERARM.COM/QUESTION-PAPER/
)
Copyright Careerarm.com
BECOME AN INSTRUCTOR?
Join thousand of instructors and earn money hassle free!
18 of 18 6/16/2017 7:58 PM