SlideShare a Scribd company logo
C Language
Interview Questions
BY :- Coding Tag
About Us
Coding Tag is the E-learning website covering all tutorials of
technical and nontechnical tutorials including advanced
programming , web Development,current affairs and Technical
interviews....
In Coding tag is an outstanding platform for your Studies and
Interview Questions practices as well on :-
AI NLP AGILE HTML CSS PHP SQL C C++ OOPS Ajax JS Python etc...
2
Can one function call another ?
Yes, any function can call another function .
For example:-
int func1(int x) {
return x+1;
}
int func2(int y) {
return func1(func1(y));
}
int main(int argc, char* argv[]) {
printf("Output is %drn", func2(5));
return 0;
}
What is a difference between far and near
pointers ?
Near pointer : This is a type of pointer which is used to bit address of up to 16 bits in a
provided section of the computer memory it can only acces data of a small size of about
64 kb.
Far Pointer : This is a type of 32 bit pointer ,it can access information which is outside
the computer memory in segments .
Huge Pointer: this is a type of 32 bit to that of th faar pointer, it can access bits that are
located outside the sector
What are some of the applications of
C language ?
● Drivers and utility software
● Database
● Operating systems
● Assembler
● Text editor and many more
What is a Recursion ?
Recursion is a technique in a programming that allows the programmer
to express operations In C , this is a form of a function that calls itself
many times you wants to repeat the process or any statements.
For example recursion may applied to :
● Sorting
● Searching,
● Traversal problems.
C Program to Swap 2 numbers with and
without third variable ?
With third variable
#include<stdio.h>
int main()
{
int var1, var2, temp;
scanf("%d%d", &var1, &var2);
printf("Before Swapping n First
variable = %d n Second variable =
%dn", var1, var2);
temp = var1;
var1 = var2;
var2 = temp;
printf("After SwappingnFirst variable
= %dnSecond variable = %dn", var1,
var2);
return 0;
Without third variable
#include<stdio.h>
int main()
{
int a=10, b=20;
printf("Before swap a=%d b=%d",a,b);
a=a+b;//a=30 (10+20)
b=a-b;//b=10 (30-20)
a=a-b;//a=20 (30-10)
printf("n After swap a=%d b=%d",a,b);
return 0;
}
For more Questions on C
and C++ to crack your
interviews Questions at
once ...
9
Thanks! Any questions? You can find me
at codingtag.com

More Related Content

PPT
Lecture#5 c lang new
PDF
Hands-on Introduction to the C Programming Language
PPTX
C programming language
PPT
Introduction to c language by nitesh
PPTX
C language
PPTX
A Crash Course in C Part-1
PPT
C language introduction
PPT
Csc1100 lecture01 ch01-pt1
Lecture#5 c lang new
Hands-on Introduction to the C Programming Language
C programming language
Introduction to c language by nitesh
C language
A Crash Course in C Part-1
C language introduction
Csc1100 lecture01 ch01-pt1

What's hot (20)

PPT
Csc1100 lecture01 ch01-pt1
PDF
C programming language
PDF
Python For Machine Learning
PPTX
Introduction to c programming language
PDF
Advanced C Language for Engineering
PPT
C program
PPT
C Lecture
ODP
C prog ppt
PPT
Introduction to C Programming
ODP
OpenGurukul : Language : C Programming
PPT
Brief introduction to the c programming language
PDF
Problem solving methodology
PPTX
# And ## operators in c
PPTX
C vs c++
PPT
C language
PPSX
Complete C programming Language Course
PPT
2. data, operators, io
DOC
C notes diploma-ee-3rd-sem
PPTX
Object Oriented Programming with C++
PPTX
Introduction to C programming
Csc1100 lecture01 ch01-pt1
C programming language
Python For Machine Learning
Introduction to c programming language
Advanced C Language for Engineering
C program
C Lecture
C prog ppt
Introduction to C Programming
OpenGurukul : Language : C Programming
Brief introduction to the c programming language
Problem solving methodology
# And ## operators in c
C vs c++
C language
Complete C programming Language Course
2. data, operators, io
C notes diploma-ee-3rd-sem
Object Oriented Programming with C++
Introduction to C programming
Ad

Similar to C Language interview questions-Coding Tag (20)

PPT
Unit1 C
PPT
Unit1 C
PPTX
C Programming Unit-1
PPTX
Programming _Language of Logic_ PPT.pptx
PPTX
C Programming Language
PPTX
Programming str_Language of Logic/c.pptx
PPT
Unit 1 c - all topics
PPTX
Programming introduction
PPTX
Learn To Code: Introduction to c
DOC
C notes for exam preparation
PDF
c++ referesher 1.pdf
PPTX
C lang7age programming powerpoint presentation
PDF
Module_1_Introduction-to-Problem-Solving.pdf
PPTX
Introduction to C Unit 1
PPTX
Fundamental programming Nota Topic 2.pptx
DOCX
C tutorials
PPTX
Team-7 SP.pptxdfghjksdfgduytredfghjkjhgffghj
PPT
Object Oriented Technologies
PPTX
Fundamentals of Data Structures Unit 1.pptx
PPTX
C PROGRAMMING document for beginners....
Unit1 C
Unit1 C
C Programming Unit-1
Programming _Language of Logic_ PPT.pptx
C Programming Language
Programming str_Language of Logic/c.pptx
Unit 1 c - all topics
Programming introduction
Learn To Code: Introduction to c
C notes for exam preparation
c++ referesher 1.pdf
C lang7age programming powerpoint presentation
Module_1_Introduction-to-Problem-Solving.pdf
Introduction to C Unit 1
Fundamental programming Nota Topic 2.pptx
C tutorials
Team-7 SP.pptxdfghjksdfgduytredfghjkjhgffghj
Object Oriented Technologies
Fundamentals of Data Structures Unit 1.pptx
C PROGRAMMING document for beginners....
Ad

Recently uploaded (20)

PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Complications of Minimal Access Surgery at WLH
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Computing-Curriculum for Schools in Ghana
PPTX
master seminar digital applications in india
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
01-Introduction-to-Information-Management.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Microbial diseases, their pathogenesis and prophylaxis
Paper A Mock Exam 9_ Attempt review.pdf.
2.FourierTransform-ShortQuestionswithAnswers.pdf
Complications of Minimal Access Surgery at WLH
Chinmaya Tiranga quiz Grand Finale.pdf
Computing-Curriculum for Schools in Ghana
master seminar digital applications in india
UNIT III MENTAL HEALTH NURSING ASSESSMENT
STATICS OF THE RIGID BODIES Hibbelers.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
01-Introduction-to-Information-Management.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Final Presentation General Medicine 03-08-2024.pptx
A systematic review of self-coping strategies used by university students to ...
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
LDMMIA Reiki Yoga Finals Review Spring Summer

C Language interview questions-Coding Tag

  • 2. About Us Coding Tag is the E-learning website covering all tutorials of technical and nontechnical tutorials including advanced programming , web Development,current affairs and Technical interviews.... In Coding tag is an outstanding platform for your Studies and Interview Questions practices as well on :- AI NLP AGILE HTML CSS PHP SQL C C++ OOPS Ajax JS Python etc... 2
  • 3. Can one function call another ? Yes, any function can call another function . For example:- int func1(int x) { return x+1; } int func2(int y) { return func1(func1(y)); } int main(int argc, char* argv[]) { printf("Output is %drn", func2(5)); return 0; }
  • 4. What is a difference between far and near pointers ? Near pointer : This is a type of pointer which is used to bit address of up to 16 bits in a provided section of the computer memory it can only acces data of a small size of about 64 kb. Far Pointer : This is a type of 32 bit pointer ,it can access information which is outside the computer memory in segments . Huge Pointer: this is a type of 32 bit to that of th faar pointer, it can access bits that are located outside the sector
  • 5. What are some of the applications of C language ? ● Drivers and utility software ● Database ● Operating systems ● Assembler ● Text editor and many more
  • 6. What is a Recursion ? Recursion is a technique in a programming that allows the programmer to express operations In C , this is a form of a function that calls itself many times you wants to repeat the process or any statements. For example recursion may applied to : ● Sorting ● Searching, ● Traversal problems.
  • 7. C Program to Swap 2 numbers with and without third variable ? With third variable #include<stdio.h> int main() { int var1, var2, temp; scanf("%d%d", &var1, &var2); printf("Before Swapping n First variable = %d n Second variable = %dn", var1, var2); temp = var1; var1 = var2; var2 = temp; printf("After SwappingnFirst variable = %dnSecond variable = %dn", var1, var2); return 0; Without third variable #include<stdio.h> int main() { int a=10, b=20; printf("Before swap a=%d b=%d",a,b); a=a+b;//a=30 (10+20) b=a-b;//b=10 (30-20) a=a-b;//a=20 (30-10) printf("n After swap a=%d b=%d",a,b); return 0; }
  • 8. For more Questions on C and C++ to crack your interviews Questions at once ...
  • 9. 9 Thanks! Any questions? You can find me at codingtag.com