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

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

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

output??
#define int char
main()
{i
nt i=65;
printf("sizeof(i)=%d",sizeof(i));
}
Answer: sizeof(i)=1
Explanation: Since the #define replaces the string int by the macro char
50. main()
{i
nt i=10;
i=!i>14;
Printf ("i=%d",i);
}
Answer: i=0
Explanation: In the expression !i>14 , NOT (!) operator has more precedence than ‘ >’ symbol. !
is a unary logical operator. !i (!10) is 0 (not of true is false). 0>14 is false (zero).

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

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

When we mention the prototype of a function?
Options
1) Defining
2) Declaring
3) Prototyping
4) Calling

Asked In C (12 years ago)
Unsolved Read Solution (9)
Is this Puzzle helpful?   (42)   (19) Submit Your Solution Program
Advertisements

(#M40157158) C QUESTION using extern key word Keep an EYE Keep an eye puzzle Keep an eye puzzle

whta is the ouput if we execute this code
#include
extern int x;
int main()
{
do{
do{
printf("%o",x);
}
while(!-2);
}
while(0);
}
return 0;
}int x=8;

Asked In C yerra anitha (9 years ago)
Unsolved Read Solution (5)
Is this Puzzle helpful?   (8)   (1) Submit Your Solution Output

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

How can you increase the size of a dynamically allocated
array?

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

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

Which header file should be included to use functions like malloc() and calloc()?

Options
1) memory.h
2) stdlib.h
3) string.h
4) dos.h

Asked In C Mallela Srilakshmi (11 years ago)
Unsolved Read Solution (16)
Is this Puzzle helpful?   (39)   (8) Submit Your Solution Output

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

output?
void main()
{
char far *farther,*farthest;
printf("%d..%d",sizeof(farther),sizeof(farthest));
}

A. 4..2

Explanation: The second pointer is of char type and not a far pointer

Asked In C MAN (12 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (5)   (4) Submit Your Solution General Knowledge

(#M40139463) C QUESTION technical (cocubes) Keep an EYE Keep an eye puzzle Keep an eye puzzle

Brain of computer is ?
1.secondary storage
2.cpu
3.ram
4.none

Asked In C soumya (10 years ago)
Unsolved Read Solution (18)
Is this Puzzle helpful?   (10)   (4) Submit Your Solution Technical

(#M40157623) C QUESTION printf puzzle Keep an EYE Keep an eye puzzle Keep an eye puzzle

printf("%d",printf("%d",printf("%d",1234)));

Asked In C SHRIVATHSAN K M (9 years ago)
Unsolved Read Solution (8)
Is this Puzzle helpful?   (13)   (8) Submit Your Solution Arrays

(#M40028774) C QUESTION Technical Question on c Keep an EYE Keep an eye puzzle Keep an eye puzzle

How can you determine the size of an allocated portion of memory?

Asked In C MAN (12 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (5)   (0) Submit Your Solution Ratio and Proportion

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

output?

Q. main( )
{i
nt a[2][3][2] = {{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}};
printf(%u %u %u %d n,a,*a,**a,***a);
printf(“%u %u %u %d n”,a+1,*a+1,**a+1,***a+1);
}
Answer:
100, 100, 100, 2
114, 104, 102, 3
Explanation: The given array is a 3-D one. It can also be viewed as a 1-D array.
100 102 104 106 108 110 112 114
116 118 120 122
thus, for the first printf statement a, *a, **a give address of first element. since the indirection
***a gives the value. Hence, the first line of the output.
for the second printf a+1 increases in the third dimension thus points to value at 114, *a+1
increments in second dimension thus points to 104, **a +1 increments the first dimension thus
points to 102 and ***a+1 first gets the value at first location and then increments it by 1. Hence,
the output.

Asked In C MAN (12 years ago)
Unsolved
Is this Puzzle helpful?   (1)   (1) Submit Your Solution
Keep an EYE (0)
Solved Question (6) UnSolved Question (454)
Pages: 46FirstPrev78910111213141516NextLast
  • 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 LIKE TRUE LOVE- A SIMPLE IDEA BUT CAN GET COMPLICATED...

Ricky Gakhar

Life cannot exist without maths

Ganesh

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