Follow Quotesrain
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • English APP
  • login
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • Walkins
    • Corporate Job Exam
    • Government Job Exam
    • Entrance Exam
  • Training
    • Internship
  • Placement Questions
  • /
  • C

Frequently Asked C interview questions and answers for freshers

C Select Another Category Select Another Topic

Programming and Technical

  • Android 118
  • ASP.NET 60
  • C 459
  • C++ 448
  • DATA STRUCTURE 66
  • DBMS 77
  • ELECTRONICS 39
  • Java 260
  • OOPs Concepts 117
  • Operating Syst 103
  • RDBMS 109
  • UNIX 70

C Question Topics

    Category (16)

    General Ability (2)

  • General Knowledge (2)
  • HR Interview (2)

  • Interview (2)
  • Logical Reasoning (9)

  • Coding Decoding (2)
  • Cryptography (1)
  • General Mental Ability (1)
  • Letter Series (1)
  • Mathematical Reasoning (1)
  • Missing Character (1)
  • Seating Arrangement (1)
  • Numerical Ability (12)

  • Age Problem (1)
  • Algebra (1)
  • Alligation or Mixture (1)
  • Data Interpretation (1)
  • Height and Distance (1)
  • Percentage (2)
  • Ratio and Proportion (1)
  • Time Distance and Speed (1)
  • Programming (218)

  • Arrays (15)
  • Basics (8)
  • Database (6)
  • Definition (25)
  • Functions (4)
  • Output (42)
  • Program (85)
  • Puzzles (1)
  • Technical (24)
  • Variables (1)
  • Verbal Ability (3)

  • Antonyms (1)
  • Miscellaneous (1)
  • Spotting Errors (1)
Keep an EYE (0)
Solved Question (6) UnSolved Question (454)
Pages: 46123456789NextLast
Advertisements

(#M40018741) C QUESTION C- QUESTIONS Keep an EYE Keep an eye puzzle Keep an eye puzzle

What will be the output of the program?
#include
int main()
{
char str[]="C-program";
int a = 5;
printf(a >10?"Psn":"%sn", str);
return 0;
}
Options
1) C-program
2) Ps
3) Error
4) None of above

Asked In C (9 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (26)   (10) Submit Your Solution Program

(#M40152256) C QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Which of the following is the correct syntax for declaration of a structure?
Select one:
struct_name;
Struct struct_name;
struct
{
Struct_name;
}
struct struct_name;

Asked In C priya (7 years ago)
Unsolved Read Solution (14)
Is this Puzzle helpful?   (76)   (35) Submit Your Solution
Advertisements

(#M40037736) C QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Consider the following code:

function modify(a,b)
{
integer c, d = 2
c = a*d + b
return c
}

function calculate( )
{
integer a = 5, b = 20, c
integer d = 10
c = modify(a, b);
c = c + d
print c
}

Assume that a and b were passed by value. What will be the output of the function calculate( ) ?

Asked In C Srishti Sinha (8 years ago)
Unsolved Read Solution (18)
Is this Puzzle helpful?   (22)   (8) Submit Your Solution Output

(#M40031857) C QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

What is the output of this C code?

#include
int main()
{
int i = 10;
void *p = &i;
printf("%dn", (int)*p);
return 0;
}
a) Compile time error
b) Segmentation fault/runtime crash
c) 10
d) Undefined behaviour

Asked In C Rajendra Singh (8 years ago)
Unsolved Read Solution (9)
Is this Puzzle helpful?   (44)   (19) Submit Your Solution Program

(#M40031856) C QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

What is the output of this C code?

#include
int main()
{
char *p = NULL;
char *q = 0;
if (p)
printf(" p ");
else
printf("nullp");
if (q)
printf("qn");
else
printf(" nullqn");
}

a) nullp nullq
b) Depends on the compiler
c) x nullq where x can be p or nullp depending on the value of NULL
d) p q

Asked In C Rajendra Singh (8 years ago)
Unsolved Read Solution (4)
Is this Puzzle helpful?   (3)   (3) Submit Your Solution Program

(#M40154368) C QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

integer i=0,j
while( i < 2 )
{
j = 0;
while ( j <= 3*i )
{
print j
print blank space
j = j + 3
}
print end-of-line //takes the cursor to the next line
i = i + 1
}
What will be the output of the program?

Asked In C Soumya Mohanty (6 years ago)
Unsolved Read Solution (7)
Is this Puzzle helpful?   (85)   (50) Submit Your Solution Technical

(#M40153813) C QUESTION find the out put of the following program Keep an EYE Keep an eye puzzle Keep an eye puzzle

main()
{
char *str = "12345";
printf("%c %c %cn", *str, *(str++), *(str++));
}

Asked In C Ravi teja (6 years ago)
Unsolved Read Solution (7)
Is this Puzzle helpful?   (9)   (6) Submit Your Solution Output

(#M40018705) C QUESTION C- QUESTIONS Keep an EYE Keep an eye puzzle Keep an eye puzzle

Which of the following is the correct order of evaluation for the below expression?
z = x + y * z / 4 % 2 - 1

Options
1) * / % + - =
2) = * / % + -
3) / * % - + =
4) * % / - + =

Asked In C (9 years ago)
Unsolved Read Solution (5)
Is this Puzzle helpful?   (160)   (66) Submit Your Solution Program

(#M40031847) C QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

For the following C program
#define AREA(x)(3.14*x*x)
main()
{float r1=6.25,r2=2.5,a;
a=AREA(r1);
printf("n Area of the circle is %f", a);
a=AREA(r2);
printf("n Area of the circle is %f", a);
}
What is the output?

Asked In C Rajendra Singh (8 years ago)
Unsolved Read Solution (4)
Is this Puzzle helpful?   (9)   (9) Submit Your Solution

(#M40037735) C QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Consider the following code:

function modify(y,z)
{
y = y + 1
z = z + 1
return y - z
}

function calculate( )
{
integer a = 12, b = 20, c

c = modify(a, b);
print a
print space
print c
}

Assume that a and b were passed by reference. What will be the output of the function calculate( ) ?

Asked In C Srishti Sinha (8 years ago)
Unsolved Read Solution (12)
Is this Puzzle helpful?   (92)   (67) Submit Your Solution
Keep an EYE (0)
Solved Question (6) UnSolved Question (454)
Pages: 46123456789NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

G.S.Kantharao
G.S.Kantharao
India
Andhra Pradesh
Time: 00:03:33
Points
17

Maths Quotes

Arithmetic is where numbers fly like pigeons in and out of your head

Carl Sandburg

As a toddler when I looked at my fingers and wondered, you helped me to count numbers. As a kid when I looked at stars with awe, you helped me and told that's infinity. As a teen when my confused mind often went blank, you told that's zero and eventually

vinotha

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 1 year ago

Thanks m4 maths for helping to get placed in several companies.
I must recommend this website for placement preparations.

yash mittal 2 years ago
  • 2431K+Registerd user
  • 1702K+Engineers
  • 729K+MBA Asprirant
  • 3K+Enginnering College
  • 250+Company Exam
  • 150K+Interview Questions
  • Site Links
  • Home
  • Result
  • Today's Puzzle
  • Discussion Board
  • Maths Tricks
  • Advertise with us
  • Contact Us
  • Useful Info
  • Maths Quotes
  • Previous Puzzles
  • Prize
  • Privacy Policy
  • Disclaimer and Copyright
  • Terms and Conditions
  • Sitemap
  • Placement papers
  • TCS Placement Paper
  • HCL Placement Paper
  • INFOSYS Placement Paper
  • IBM Placement Paper
  • SYNTEL Placement Paper
  • TECHNICAL Interview
  • HR Interview
All rights are reserved to @m4maths.com