• 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 37

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: 46FirstPrev33343536373839404142NextLast
Advertisements

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

output?
Q. What is the use of typedef?

A. (i)It increases the portability.
(ii) It simplify the complex declaration and improve readability of the program.

Asked In C MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

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

output?
Q. Difference between arrays and linked list?

A. Major differences between arrays and linked lists are:
(i) In array consecutive elements are stored in consecutive memory locations whereas in linked list it not so.
(ii) In array address of next element is consecutive and whereas in linked list it is specified in the address part of each node.
(iii) Linked List makes better use of memory than arrays.
(iv) Insertion or deletion of an element in array is difficult than insertion or deletion in linked list

Asked In C MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution
Advertisements

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

output?
Q. Why Preincrement operator is faster than Postincrement?

A. Evaluation of any expression is from left to right. Preincrement is faster because it doesn't need to save the current value for next instruction whereas Postincrement needs to saves current value to be incremented after execution of current instruction.

Asked In C MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

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

output?
Q. Where are the auto variables stored?

A. Auto variables are stored in main memory and their default value is a garbage value.

Asked In C MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

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

output?
Q. What are merits and demerits of array in c?

A. Merits:
(a) We can easily access each element of array.
(b) Not necessity to declare too many variables.
(c) Array elements are stored in continuous memory location

Asked In C MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

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

output?
Q. What is dangling pointer in c?

A. If any pointer is pointing the memory address of any variable but after some variable has deleted from that memory location while pointer is still pointing such memory location. Such pointer is known as dangling pointer and this problem is known as dangling pointer problem.

Asked In C MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

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

output?
main( )
{i
nt a[ ] = {10,20,30,40,50},j,*p;
for(j=0; j

Asked In C MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

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

output?
Q.
main()
{
extern int i;
i=20;
printf("%d",sizeof(i));
}

A. Linker error: undefined symbol '_i'.

Explanation: extern declaration specifies that the variable i is defined somewhere else. The
compiler passes the external variable to be resolved by the linker. So compiler doesn't find an
error. During linking the linker searches for the definition of i. Since it is not found the linker flags
an error.

Asked In C MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (1) Submit Your Solution

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

output??
Q.
#include
main()
{
struct xx
{i
nt x=3;
char name[]="hello";
};
struct xx *s=malloc(sizeof(struct xx));
printf("%d",s->x);
printf("%s",s->name);
}

A. Compiler Error

Explanation: Initialization should not be done for structure members inside the structure
declaration

Asked In C MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

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

Q.
main()
{i
nt i=0;
for(;i++;printf("%d",i)) ;
printf("%d",i);
}

A. 1

Explanation: before entering into the for loop the checking condition is "evaluated". Here it
evaluates to 0 (false) and comes out of the loop, and i is incremented (note the semicolon after the for loop).

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

Resend

Sponsored Links

Advertisements

Challenger of the Day

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

Maths Quotes

"zeroes sometimes makes you a hero.."

anand vijay

Medicine makes people ill, mathematics make them sad and theology makes them sinful.

Martin Luther

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