Sie sind auf Seite 1von 18

C Interview questions pdf and answers Freshers experienced http://www.careerarm.

com/3854-c-interview-questions/

Home Blog Technology C Interview questions and answers for Freshers pdf download

Ads by Google

C Interview questions and answers


for Freshers pdf download

Tag: C language Share 4 8

(http://www.careerarm.com/tag/c- Tweet

language/), Technical hr interview


questions
(http://www.careerarm.com
/tag/technical-hr-interview-
questions/)

C Interview questions and answers for


Freshers experiencedpdf download
C Interview questions, How many of you wontfear whenyou hear this.
Why this becomes a scary question, among other interview questions.
Yes, these weighthe 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 andanswers in pdf format
to download for your convenience.

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/

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.

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/
)

(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/
)

C interview questions- Technical HR

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/
)

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 MNCs. So you need to work hard in learning
the technical interview questions basics, so you can get through the next
round of the interview with con dence.

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/
)

Top common interview questions


HR INTERVIEW on (HTTP://WWW.CAREERARM.COM/2484-
C
QUESTIONS
HR-INTERVIEW-QUESTIONS-ANSWERS-FOR-FRESHERS/
)
Find all the C language questions related to loops, strings, arrays,
(http://www.careerarm.com/ ) STUDY MATERIAL(HTTP://WWW.CAREERARM.COM/STUDY-MATERIAL/
)
pointers, switch case, data structure, etc., in the below list.

PLACEMENT(HTTP://WWW.CAREERARM.COM/PLACEMENT/
)
Ads by Google
HTTP://WWW.CAREERARM.COM/QUESTION-PAPER/
)

1. De ne the null pointer?

Literally, this one points to nothing. The base address of the segment is
pointed by the null pointer.

Example: oat *ptr=( oat *)0;

2. Different storage class speci ers in C?

BECOME AN INSTRUCTOR?
Auto
Static
Register
Extern
Join thousand of instructors and earn money hassle free!

3. What will be the output of the below given C program?

GET STARTED NOW


(HTTP://WWW.CAREERARM.COM/BECOME-A-TEACHER/
)
#include<stdio.h>

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/
)

By default, functions are global in C. The keyword static before the


function makes it static. Whenever we need to stop accessing functions
we make them as static.

5. What is a dangling pointer?

It is a pointer which doesnt pointthe valid memory location. It emerges


when an object is deallocated or deleted.

6. Write a program for bonacci series

#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/
)

printf(Enterthe number of elements:);

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.

third= rst+second; HOME(HTTP://WWW.CAREERARM.COM


)
Powered byPushify Deny Allow
(https://pushify.com)
printf(%d,third); QUANTITATIVE APTITUDE(HTTP://WWW.CAREERARM.COM
/437-QUANTITATIVE-APTITUDE-FORMULAS-SHORTCUTS/
)
rst=second;
HR INTERVIEW QUESTIONS
(HTTP://WWW.CAREERARM.COM/2484-
HR-INTERVIEW-QUESTIONS-ANSWERS-FOR-FRESHERS/
)
second=third;
(http://www.careerarm.com/ ) STUDY MATERIAL(HTTP://WWW.CAREERARM.COM/STUDY-MATERIAL/
)
}
PLACEMENT(HTTP://WWW.CAREERARM.COM/PLACEMENT/
)
return 0;
QUESTION PAPER(HTTP://WWW.CAREERARM.COM/QUESTION-PAPER/
)
}

Output for the program:

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 identi ers were statically scoped in C. It is a part of a program

BECOME AN INSTRUCTOR?
where the variable may accessible directly.

8. Differentiate malloc()and calloc()?


Join thousand of instructors and earn money hassle free!
malloc()- allocates bytes of memory

calloc()- allocates blocks


GET of memory
STARTED NOW
(HTTP://WWW.CAREERARM.COM/BECOME-A-TEACHER/
)

9. Using temporary variable, write a program to swap 2 numbers

#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.

printf(Enter the values for x &y:\n); HOME(HTTP://WWW.CAREERARM.COM


)
Powered byPushify Deny Allow
(https://pushify.com)
scanf(%d%d,&x,&y); QUANTITATIVE APTITUDE(HTTP://WWW.CAREERARM.COM
/437-QUANTITATIVE-APTITUDE-FORMULAS-SHORTCUTS/
)
printf(Before applying swapppingx=%d,y=%d \n, x, y);
HR INTERVIEW QUESTIONS
(HTTP://WWW.CAREERARM.COM/2484-
HR-INTERVIEW-QUESTIONS-ANSWERS-FOR-FRESHERS/
)
temp = x;
(http://www.careerarm.com/ ) STUDY MATERIAL(HTTP://WWW.CAREERARM.COM/STUDY-MATERIAL/
)
x = y;
PLACEMENT(HTTP://WWW.CAREERARM.COM/PLACEMENT/
)
y = temp;
QUESTION PAPER(HTTP://WWW.CAREERARM.COM/QUESTION-PAPER/
)
printf(After applying swappingx=%d,y=%d \n, x, y);

return0;

The output for this program is:

Enter the values for x & y: 5 6

Before applying swapping x=5, y=6

BECOME AN INSTRUCTOR?
After applying swapping x=6, y=5

10. Differentiate pass by reference and pass by value?


Join thousand of instructors and earn money hassle free!
Pass by reference: Inside the function any modi cation ofparameters will
re ect in the actual variables. Since memory address actual variables
passed as a parameterin a function.
GET STARTED NOW (HTTP://WWW.CAREERARM.COM/BECOME-A-TEACHER/
)

Pass by value:Inside the function any modi cation ofparameterswill not


re ect in the actual variables, Since a copy ofactual variables passed as
a parameterin a function.


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/

A loop which turns within an another loopis the nested loop.


Do you(mailto:support@careerarm.com
support@careerarm.com
Have any question? like to receive push notifications
) from
CareerArm
Register (http://www.careerarm.com/account/?action=register ) Login (http://www.careerarm.com/account/ )
12. Write a program tocheck whether the givenstring is palindromeor
You can turn it o whenever you like.
not
HOME(HTTP://WWW.CAREERARM.COM
)
Powered byPushify Deny Allow
#include <stdio.h>
(https://pushify.com)
QUANTITATIVE APTITUDE(HTTP://WWW.CAREERARM.COM
/437-QUANTITATIVE-APTITUDE-FORMULAS-SHORTCUTS/
)
#include<string.h>

HR INTERVIEW QUESTIONS
(HTTP://WWW.CAREERARM.COM/2484-
intmain() HR-INTERVIEW-QUESTIONS-ANSWERS-FOR-FRESHERS/
)

{(http://www.careerarm.com/ ) STUDY MATERIAL(HTTP://WWW.CAREERARM.COM/STUDY-MATERIAL/


)

char string2[15]; PLACEMENT(HTTP://WWW.CAREERARM.COM/PLACEMENT/


)

inti, length; QUESTION PAPER(HTTP://WWW.CAREERARM.COM/QUESTION-PAPER/


)

int ag = 0;

printf(Enter any string: \n);

scanf(%s , string 2);

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.

printf(%s is not a palindrome\n, string2); HOME(HTTP://WWW.CAREERARM.COM


)
Powered byPushify Deny Allow
(https://pushify.com)
} QUANTITATIVE APTITUDE(HTTP://WWW.CAREERARM.COM
/437-QUANTITATIVE-APTITUDE-FORMULAS-SHORTCUTS/
)
else
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/
)
printf(%s is a palindrome\n ,string2);
PLACEMENT(HTTP://WWW.CAREERARM.COM/PLACEMENT/
)
}
QUESTION PAPER(HTTP://WWW.CAREERARM.COM/QUESTION-PAPER/
)
return0;

Output for the program:

Enter any string: malayalam

malayalamis a palindrome

13. De ne Syntax error?

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?

Selection GET STARTED NOW


(HTTP://WWW.CAREERARM.COM/BECOME-A-TEACHER/
)
Sequence
Repetition

The above are the three main control structures.

15. What is meant by debugging?

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/

The process of recognizing the errors is said to be debugging which is


Have any question? support@careerarm.comDo you(mailto:support@careerarm.com
like to receive push notifications
) from
donewithin the program. The errors which are found during the process
CareerArm
Register (http://www.careerarm.com/account/?action=register ) Login (http://www.careerarm.com/account/ )
of compilation of a program can be removed by debugging and it gives
You can turn it o whenever you like.
the expected program output.
HOME(HTTP://WWW.CAREERARM.COM
)
Powered byPushify Deny Allow
16. Give the output of the program given below?
(https://pushify.com)
QUANTITATIVE APTITUDE(HTTP://WWW.CAREERARM.COM
/437-QUANTITATIVE-APTITUDE-FORMULAS-SHORTCUTS/
)
#include<stdio.h>
HR INTERVIEW QUESTIONS
(HTTP://WWW.CAREERARM.COM/2484-
int main() HR-INTERVIEW-QUESTIONS-ANSWERS-FOR-FRESHERS/
)

(http://www.careerarm.com/ ) STUDY MATERIAL(HTTP://WWW.CAREERARM.COM/STUDY-MATERIAL/


)
{

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?

The pointer that can


Join accessthe
thousand ofRAMs whole the
instructors andresidence memory
earn money is
hassle free!
said to be the far pointer. Otherwise, we can also say itcan point all the
16 segments.

GET STARTED NOW


(HTTP://WWW.CAREERARM.COM/BECOME-A-TEACHER/
)
18. What is said to be alocal 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?

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:

Enter the value of x: 7


GET STARTED NOW
(HTTP://WWW.CAREERARM.COM/BECOME-A-TEACHER/
)

Given value is odd

20. Give the difference between ++a and a++?

++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/

the resulting value is usedin the operation.


Have any question? Do you(mailto:support@careerarm.com
support@careerarm.com like to receive push notifications
) from
CareerArm
a++- This isRegister
post (http://www.careerarm.com/account/?action=register
x increment. That is, the current value a is) usedLogin (http://www.careerarm.com/account/
in the )
You can turn it o whenever you like.
operation before the value a itself incremented.
HOME(HTTP://WWW.CAREERARM.COM
)
Powered byPushify Deny Allow
21. Write a program to nd the factorial of a given number
(https://pushify.com)
QUANTITATIVE APTITUDE(HTTP://WWW.CAREERARM.COM
/437-QUANTITATIVE-APTITUDE-FORMULAS-SHORTCUTS/
)
include<stdio.h>

HR INTERVIEW QUESTIONS
(HTTP://WWW.CAREERARM.COM/2484-
intmain() HR-INTERVIEW-QUESTIONS-ANSWERS-FOR-FRESHERS/
)

{(http://www.careerarm.com/ ) STUDY MATERIAL(HTTP://WWW.CAREERARM.COM/STUDY-MATERIAL/


)

inti=1,a=1,num; PLACEMENT(HTTP://WWW.CAREERARM.COM/PLACEMENT/
)

printf(Enterany number: QUESTION


); PAPER(HTTP://WWW.CAREERARM.COM/QUESTION-PAPER/
)

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:

Enter any number: 4

Factorial of given number4 is 24


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/

22. When it is preferableto use a switch statement over an if statement?


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 ) based
Login (http://www.careerarm.com/account/ )
Switch statements are preferable when the selections are made on
You can turn it o whenever you like.
the single expression or variable.
HOME(HTTP://WWW.CAREERARM.COM
)
Powered byPushify Deny Allow
23. To nd the largestof three numbers, write a C program
(https://pushify.com)
QUANTITATIVE APTITUDE(HTTP://WWW.CAREERARM.COM
/437-QUANTITATIVE-APTITUDE-FORMULAS-SHORTCUTS/
)
#include<stdio.h>

HR INTERVIEW QUESTIONS
(HTTP://WWW.CAREERARM.COM/2484-
intmain() HR-INTERVIEW-QUESTIONS-ANSWERS-FOR-FRESHERS/
)

{(http://www.careerarm.com/ ) STUDY MATERIAL(HTTP://WWW.CAREERARM.COM/STUDY-MATERIAL/


)

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)

printf(x islarger thany & 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)

printf(z is larger than x & 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

x is larger than y& z

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.

25. De ne the logical operators ion C? HOME(HTTP://WWW.CAREERARM.COM


)
Powered byPushify Deny Allow
(https://pushify.com)
To do logical operations in C, Logical operators are used. Generally
QUANTITATIVE APTITUDE there
(HTTP://WWW.CAREERARM.COM
/437-QUANTITATIVE-APTITUDE-FORMULAS-SHORTCUTS/
)
are three type of logical operators used in C. They are,

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 !)

26. Differentiate do-whileand while loops?


PLACEMENT(HTTP://WWW.CAREERARM.COM/PLACEMENT/
)

Only when the given condition is true,PAPER


QUESTION the xecution of while loop will be
(HTTP://WWW.CAREERARM.COM/QUESTION-PAPER/
)
done.

But in do-while loop, while loop execution is done rst before the
condition is checked.

27. List out the different types of variable in C?

Global variable, local variable and environment variable.

28. De ne typecasting?

The need to convert an expression/ variable of one data type to another

BECOME AN INSTRUCTOR?
data type involving arithmetic expressions in C program is said to be
typecasting.

Join thousand of instructors and earn money hassle free!


Check out the videos on Technical C questions,


GET STARTED NOW
(HTTP://WWW.CAREERARM.COM/BECOME-A-TEACHER/
)

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/

Have any question?


CareerArm
Register (http://www.careerarm.com/account/?action=register ) Login (http://www.careerarm.com/account/ )
You can turn it o whenever you like.

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/
)

(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/
)

Get more C interview questions onour website.

BECOME AN INSTRUCTOR?
Join thousand of instructors and earn money hassle free!

GET STARTED NOW


(HTTP://WWW.CAREERARM.COM/BECOME-A-TEACHER/
)

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/

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.

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/
)

(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/
)

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/)

GET STARTED NOW


(HTTP://WWW.CAREERARM.COM/BECOME-A-TEACHER/
)

Previous post Next post

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/

Interview tips for Top 10 steps to become a


Do you(mailto:support@careerarm.com
like to receive push notifications from
2 COMMENTS support@careerarm.com
Have any question?
Freshers / Experienced- successful entrepreneur
)
CareerArm
Learn
Register best skills young Entrepreneurs
(http://www.careerarm.com/account/?action=register ) Login (http://www.careerarm.com/account/ )
(http://www.careerarm.com You can turn (http://www.careerarm.com
it o whenever you like.
/3965-interview-tips/) /3974-top-10-steps- HOME(HTTP://WWW.CAREERARM.COM )
Deny
2015 byPushify to-become-a-successful-
Powered
14 October, Allow
(https://pushify.com) entrepreneur/)
QUANTITATIVE APTITUDE (HTTP://WWW.CAREERARM.COM
14 October, 2015
/437-QUANTITATIVE-APTITUDE-FORMULAS-SHORTCUTS/
)
Egovtjobs February 4, 2016 Log in to Reply
HR INTERVIEW QUESTIONS (HTTP://WWW.CAREERARM.COM/2484-
(http://www.careerarm.com/access/?redirect_to=http
HR-INTERVIEW-QUESTIONS-ANSWERS-FOR-FRESHERS/
)
%3A%2F%2Fwww.careerarm.com%2F3854-c-interview-
(http://www.careerarm.com/
questions%2F)) STUDY MATERIAL(HTTP://WWW.CAREERARM.COM/STUDY-MATERIAL/
)

Thanks for giving the interview Questions


PLACEMENT (HTTP://WWW.CAREERARM.COM/PLACEMENT/
)

QUESTION PAPER(HTTP://WWW.CAREERARM.COM/QUESTION-PAPER/
)

Preethi February 10, 2016 Log in to Reply


(http://www.careerarm.com/access/?redirect_to=http
%3A%2F%2Fwww.careerarm.com%2F3854-c-interview-
questions%2F)

Its very useful to me. Thanks a lot

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.

GET STARTED NOW


(HTTP://WWW.CAREERARM.COM/BECOME-A-TEACHER/
)

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!

GET STARTED NOW


(HTTP://WWW.CAREERARM.COM/BECOME-A-TEACHER/
)

18 of 18 6/16/2017 7:58 PM

Das könnte Ihnen auch gefallen