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

(#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 (7 years ago)
Unsolved Read Solution (7)
Is this Puzzle helpful?   (20)   (8) Submit Your Solution Output

(#M40156418) C QUESTION memory Keep an EYE Keep an eye puzzle Keep an eye puzzle

A 10-bit unsigned integer has the following range:
Options:
[1] 0 to 1000
[2] 0 to 1024
[3] 1 to 1025
[4] 0 to 1023

Asked In C JANARTHANAN RAM (6 years ago)
Unsolved Read Solution (15)
Is this Puzzle helpful?   (80)   (43) Submit Your Solution Basics
Advertisements

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

Consider the following code:

for i= m to n increment 2
{ print "Hello!" }

Assuming m < n and exactly one of (m,n) is even, how many times will Hello be printed?
Option 1 : (n - m + 1)/2
Option 2 : 1 + (n - m)/2
Option 3 : 1 + (n - m)/2 if m is even, (n - m + 1)/2 if m is odd
Option 4 : (n - m + 1)/2 if m is even, 1 + (n - m)/2 if m is odd

Asked In C Dastagiri Sha (4 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (155)   (111) Submit Your Solution Basics

(#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 (9 years ago)
Unsolved Read Solution (9)
Is this Puzzle helpful?   (53)   (20) 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?   (83)   (38) Submit Your Solution

(#M40018745) 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()
{
static int a[20];
int i = 0;
a[i] = i ;
printf("%d, %d, %dn", a[0], a[1], i);
return 0;
}
Options
1) 1, 0, 1
2) 1, 1, 1
3) 0, 0, 0
4) 0, 1, 0

Asked In C (9 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (32)   (9) Submit Your Solution Program

(#M40167106) C QUESTION how this works Keep an EYE Keep an eye puzzle Keep an eye puzzle

int i=3,j=2,k=0,m;
m = ++i && ++j || ++k;
printf(ā€œ%d %d %d %dā€, i , j, k,m);

Asked In C Krishna Kumar M (1 year ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (7)   (3) Submit Your Solution Arrays

(#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?   (32)   (14) Submit Your Solution Program

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

Q. main()
{
show();
}
void show()
{
printf("I'm the greatest");
}

A. Compier error: Type mismatch in redeclaration of show.

Explanation: When the compiler sees the function show it doesn't know anything about it. So
the default return type (ie, int) is assumed. But when compiler sees the actual definition of show
mismatch occurs since it is declared as void. Hence the error.
The solutions are as follows:
1. declare void show() in main() .
2. define show() before main().
3. declare extern void show() before the use of show().

Asked In C MAN (9 years ago)
Unsolved
Is this Puzzle helpful?   (3)   (1) Submit Your Solution Program

(#M40157921) C QUESTION pseudo code Keep an EYE Keep an eye puzzle Keep an eye puzzle

What will be the output of the following pseudo-code statements:
integer a = 456, b, c, d =10
b = a/d
c = a - b
print c

Asked In C Ashok (6 years ago)
Unsolved Read Solution (12)
Is this Puzzle helpful?   (46)   (19) Submit Your Solution Arrays
Keep an EYE (0)
Solved Question (6) UnSolved Question (454)
Pages: 46123456789NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

no image
Dimple
India
Punjab
Time: 00:01:33
Points
19

Maths Quotes

Mathematics is the QUEEN of all subject

Rupam

If I were again beginning my studies, I would follow the advice of Plato and start with mathematics.

Galileo Galilei

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 2 years ago

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

yash mittal 3 years ago
  • 2470K+Registerd user
  • 1729K+Engineers
  • 741K+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