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

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

(#M40037098) C QUESTION HCL PLACEMENT PAPER Keep an EYE Keep an eye puzzle Keep an eye puzzle

On a machine where pointers are 4 bytes long, what happens when the following code is
executed.
main()
{
int x=0,*p=0;
x++; p++;
printf ("%d and %d\n",x,p);
}
a) 1 and 1 is printed
b) 1 and 4 is printed
c) 4 and 4 is printed
d) causes an exception
CHOOSE THE CORRECT OPTION

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

(#M40153401) C QUESTION OUTPUT Keep an EYE Keep an eye puzzle Keep an eye puzzle

#include
void main()
{
float p;
p=3.2:
printf("p/2*6",%d):
}

Asked In C venkat (10 years ago)
Unsolved Read Solution (18)
Is this Puzzle helpful?   (15)   (3) Submit Your Solution Output
Advertisements

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

output??
#include
main()
{i
nt a[2][2][2] = { {10,2,3,4}, {5,6,7,8} };
int *p,*q;
p=&a[2][2][2];
*q=***a;
printf("%d----%d",*p,*q);
}

Answer: SomeGarbageValue---1

Explanation: p=&a[2][2][2] you declare only two 2D arrays, but you are trying to access the
third 2D(which you are not declared) it will print garbage values.
*q=***a starting address of a is assigned integer pointer. Now q is pointing to starting address of
a. If you print *q, it will print first element of 3D array

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

(#M40154465) C QUESTION Loop Keep an EYE Keep an eye puzzle Keep an eye puzzle

The body of the loop contains only a semicolon, known as a

Asked In C Bhargav (9 years ago)
Unsolved Read Solution (5)
Is this Puzzle helpful?   (2)   (3) Submit Your Solution Output

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

Q. main()
{
printf("%d", out);
}i
nt out=100;

A. Compiler error: undefined symbol out in function main.

Explanation: The rule is that a variable is available for use from the point of declaration. Even
though a is a global variable, it is not available for main. Hence an error.

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

(#M40155268) C QUESTION String Keep an EYE Keep an eye puzzle Keep an eye puzzle

#include

int main()
{
char *names[] = { "Suresh", "Siva", "Sona", "Baiju", "Ritu"};
int i;
char *t;
t = names[3];
names[3] = names[4];
names[4] = t;
for(i=0; i<=4; i++)
printf("%s,", names[i]);
return 0;
}

Asked In C Anshul jain (9 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (0)   (1) Submit Your Solution Output

(#M40153843) C QUESTION PROGRAMMING IN C Keep an EYE Keep an eye puzzle Keep an eye puzzle

PRGRAMMING IN C

Asked In C lalitha kumari kolukula (10 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution Output

(#M40152921) C QUESTION OUT of the program Keep an EYE Keep an eye puzzle Keep an eye puzzle

main()
{
int i=5;
printf("%d",foo(foo(foo(foo(foo(foo(i)))))));
}
void foo(int i)
{
if(i%2)
return (i*(5-4)+i);
else
return i-3;
}

Asked In C anubhav kumar (10 years ago)
Unsolved Read Solution (10)
Is this Puzzle helpful?   (5)   (2) Submit Your Solution Output

(#M40154461) C QUESTION Make the array sorted in just one swap. Keep an EYE Keep an eye puzzle Keep an eye puzzle

Given an array of non-negative integers. Find if the array can be sorted(ascending) in single swap of two numbers or not. ex1 :- A = [12,14,23,42,28,33,39,25,45] should return true. since swapping 42 and 25 will sort the array A. ex2 :- A = [12,14,23,42,28,33,22,25,45] should return false.

Asked In C Tripti Garg (9 years ago)
Unsolved
Is this Puzzle helpful?   (1)   (1) Submit Your Solution Functions

(#M40153400) C QUESTION ERROR Keep an EYE Keep an eye puzzle Keep an eye puzzle

#include
void main()
{
int a,c,f:
printf("acf",%d):
}

Asked In C venkat (10 years ago)
Unsolved Read Solution (9)
Is this Puzzle helpful?   (0)   (2) Submit Your Solution Technical
Keep an EYE (0)
Solved Question (6) UnSolved Question (454)
Pages: 46FirstPrev19202122232425262728NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

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

Maths Quotes

amcat ques , guys help me what is the value of these log0.2 base 5

amcat

There is nothing more deceptive thing in mathematics than an obvious fact.

Conan.O.Doyle

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