• 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 Page 6

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 261
  • 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: 46FirstPrev234567891011NextLast
Advertisements

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

In!a!Circle!

A number of children are standing in a circle. If the 5th person is opposite the 13th person, how many people are in the circle?

Asked In C UZAIR MANSURI (11 years ago)
Unsolved Read Solution (6)
Is this Puzzle helpful?   (15)   (36) Submit Your Solution

(#M40155280) C QUESTION sizeof() Keep an EYE Keep an eye puzzle Keep an eye puzzle

int main()
{
struct value
{
int bit1:1;
int bit3:4;
int bit4:4;
}bit;
printf("%dn", sizeof(bit));
return 0;
}

A. 1 B. 2
C. 4 D. 9

Asked In C Anshul jain (9 years ago)
Unsolved Read Solution (5)
Is this Puzzle helpful?   (7)   (5) Submit Your Solution Technical
Advertisements

(#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 (11 years ago)
Unsolved Read Solution (4)
Is this Puzzle helpful?   (14)   (13) Submit Your Solution

(#M40119261) C QUESTION o/p Keep an EYE Keep an eye puzzle Keep an eye puzzle

int main()
{
int x=0xffff;
x=x<>3;
printf("%x",x);
}

Asked In C om prakash kumar (10 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (9)   (2) Submit Your Solution Program

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

Consider the following program and what will be content of t?
#include
int main()
{
FILE *fp;
int t;
fp = fopen("DUMMY.C", "w");
t = fileno(fp);
printf("%dn", t);
return 0;
}

Options
1) size of "DUMMY.C" file
2) The handle associated with "DUMMY.C" file
3) Garbage value
4) Error in fileno()

Asked In C (12 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (4)   (2) 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 (12 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 (8 years ago)
Unsolved Read Solution (12)
Is this Puzzle helpful?   (46)   (20) Submit Your Solution Arrays

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

Which files will get closed through the fclose() in the following program?
#include
int main()
{
FILE *fs, *ft, *fp;
fp = fopen("A.C", "r");
fs = fopen("B.C", "r");
ft = fopen("C.C", "r");
fclose(fp, fs, ft);
return 0;
}
Options
1) "A.C" "B.C" "C.C"
2) "B.C" "C.C"
3) "A.C"
4) Error in fclose()

Asked In C (12 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (11)   (8) Submit Your Solution Program

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

What will be the output of the program ?
#include
#include

int main()
{
char str1[20] = "Hello", str2[20] = " World";
printf("%sn", strcpy(str2, strcat(str1, str2)));
return 0;
}
Options
1) Hello
2) World
3) Hello World
4) WorldHello

Asked In C (12 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (11)   (3) Submit Your Solution Program

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

output?
main()
{
printf("nab");
printf("bsi");
printf("rha");
}

Answer: hai

Explanation:
n - newline
b - backspace
r - linefeed

Asked In C MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (1)   (0) Submit Your Solution
Keep an EYE (0)
Solved Question (6) UnSolved Question (454)
Pages: 46FirstPrev234567891011NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

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

Maths Quotes

PURE MATHEMATICS IS, IN ITS WAY, THE POETRY OF LOGICAL IDEAS.

Lukman Hussaini

[G]eometry is not true, it is advantageous.

~Henri Poincaré

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 5 years ago

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

yash mittal 5 years ago

Now enjoy Offline Access of latest Question.

Get M4maths app to avail expert's solution and latest selected questions.

Download m4maths app now

  • 2533K+Registerd user
  • 1774K+Engineers
  • 759K+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