C Interview Questions and Answers For Freshers PDF Download
C Interview Questions and Answers For Freshers PDF Download
C Interview Questions and Answers For Freshers PDF Download
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
Interview Round 1 -
Aptitude
Aptitude questions
RECENT POSTS
TO 8 MATHS ENGLISH
DOWNLOAD (PDF)
INDIA
DOWNLOAD PDF
ANSWERS FRESHERS
ATHENAHEALTH INTERVIEW
DOWNLOAD FRESHERS
REGISTRATION
PLACEMENT DRIVE
REGISTRATION PROCESS
CATEGORIES
Interview questions on C language Technical
ADMIT CARD
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
AdChoices
TIME TABLE
WEB DEVELOPMENT
Literally, this one points to nothing. The base address of the segment is pointed by the null pointer.
Auto
Static
Register Learn JAVA from
Extern scratch
#include<stdio.h>
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
int main()
printf(“%d “,*ptr);
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
{ Technical
interview
third=first+second;
questions Telangana
printf(“%d”,third);
TNPSC Topper list UI
design UPSC VAO
first=second;
second=third;
return 0;
01123
All the identifiers were statically scoped in C. It is a part of a program where the variable may accessible
directly.
#include<stdio.h>
int main()
int x, y, temp;
scanf(“%d %d”,&x,&y);
temp = x;
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
x = y;
y = temp;
return 0;
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.
12. Write a program to check whether the given string is palindrome or not
#include<string.h>
int main()
char string2[15];
int i, length;
int flag = 0;
length = strlen(string2);
for(i=0;i<length;i++)
flag = 1;
break;
if (flag)
else
return 0;
malayalam is a palindrome
Selection
Sequence
Repetition
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.
#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.
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.
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;
scanf(“%d”, &x);
if (x % 2 == 0)
PDF created on http://www.htm2pdf.co.uk via the HTML to PDF API
{
else
return 0;
“++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.
include<stdio.h>
int main()
int i=1,a=1,num;
scanf(“%d”,&num);
while(i<=num)
a=a*i;
i++;
return 0;
Switch statements are preferable when the selections are made based on the single expression or variable.
#include<stdio.h>
int main()
int x, y, z;
if(x>y&&x>z)
else if (y>x&&y>z)
else if (z>x&&z>y)
else
return 0;
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)
To do logical operations in C, Logical operators are used. Generally there are three type of logical operators
used in C. They are,
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.
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.
Priscilla N
2 COMMENTS
LEAVE A REPLY
BECOME AN INSTRUCTOR?
Copyright Careerarm.com