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

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

(#M40038668) C QUESTION find the output with reason Keep an EYE Keep an eye puzzle Keep an eye puzzle

what is the output of the following piece of code :-

#include
int main()
{
int a = 5;
printf("%d %d %d",++a,a,a++);
return 0;
}

Asked In C piyush joshi (11 years ago)
Unsolved Read Solution (27)
Is this Puzzle helpful?   (6)   (1) Submit Your Solution Program

(#M40038968) C QUESTION explain the output with respect to gcc compiler Keep an EYE Keep an eye puzzle Keep an eye puzzle

#include
int main(){
int a=2;
a=a++ + ~++a;
printf("%d",a);
return 0;
}

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

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

integer x = 0 // statement 1
integer sum = 0 // statement 2
while ( x < 10 ) // statement 3
{
sum = x*x*x // statement 4
x = x + 1 // statement 5
}
print sum // statement 6

Asked In C G venkata kalyan (10 years ago)
Unsolved Read Solution (19)
Is this Puzzle helpful?   (15)   (16) Submit Your Solution Definition

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

Can you use the function fprintf() to display the output
on the screen?

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

(#M40033724) C QUESTION Technical Keep an EYE Keep an eye puzzle Keep an eye puzzle

Algorithm for snake and ladder game?

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

(#M40165276) C QUESTION code Keep an EYE Keep an eye puzzle Keep an eye puzzle

main()
[
int x=5;
clrscr();
if(x=4)
printf("%d",x+1);
else
printf("%d",x-1);
getch();
]



please give me a valid reason of your answer m not getting .

Asked In C praveen kumar (7 years ago)
Unsolved Read Solution (10)
Is this Puzzle helpful?   (10)   (6) Submit Your Solution

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

Q. Predict the output or error
main()
{
int k=1;
printf("%d==1 is ""%s",k,k==1?"TRUE":"FALSE");
}

A. 1==1 is TRUE

Explanation: When two strings are placed together (or separated by white-space) they are concatenated (this is called as "stringization" operation). So the string is as if it is given as
"%d==1 is %s". The conditional operator( ?: ) evaluates to "TRUE".

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

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

Which standard library function will you use to find the last occurance of a character in a string in C?

Options
1) strnchar()
2) strchar()
3) strrchar()
4) strrchr()

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

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

Q. what will be the position of the file marker?
a: fseek(ptr,0,SEEK_SET);
b: fseek(ptr,0,SEEK_CUR);

A. a: The SEEK_SET sets the file position marker to the starting of the file.
b: The SEEK_CUR sets the file position marker to the current position
of the file.

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

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

programming coading

Asked In C Er.Ashutosh Shrivastava (7 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (6)   (0) Submit Your Solution Spotting Errors
Keep an EYE (0)
Solved Question (6) UnSolved Question (454)
Pages: 46FirstPrev12131415161718192021NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

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

Maths Quotes

Life is good for only two things, discovering mathematics and teaching mathematics.

Simeon Poisson

I was x years old in the year x^2. (when asked his age.)

Augustus de Morgan

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