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

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

(#M40164897) C QUESTION TCS Keep an EYE Keep an eye puzzle Keep an eye puzzle

Write a program to determine if a string is a palindrome. User will input the string in the Command line

Asked In C siva prasad reddy (8 years ago)
Unsolved Read Solution (4)
Is this Puzzle helpful?   (5)   (3) Submit Your Solution Functions

(#M40156299) C QUESTION increment operators Keep an EYE Keep an eye puzzle Keep an eye puzzle

What will be the output of the following C program?

#include
void main(void)
{
int a=5, b, c,d,e;
e= (b=++a) + (c=a++) + (d=++a) ;
printf("%d, %d, %d, %d, %d", a,b,c,d,e);

return 0;
}

[1] 4, 5, 2, 3
[2] 8, 6, 7, 1
[3] 4, 6, 9, 2
[4] 8, 6, 6, 7

Asked In C Rishikesh Agrawani (9 years ago)
Unsolved Read Solution (13)
Is this Puzzle helpful?   (3)   (1) Submit Your Solution Output
Advertisements

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

output??
Q.
#include
main()
{
char s[]={'a','b','c','n','c',''};
char *p,*str,*str1;
p=&s[3];
str=p;
str1=s;
printf("%d",++*p + ++*str1-32);
}

A. M

Explanation: p is pointing to character 'n'.str1 is pointing to character 'a' ++*p "p is pointing to
'n' and that is incremented by one." the ASCII value of 'n' is 10. then it is incremented to 11.
the value of ++*p is 11. ++*str1 "str1 is pointing to 'a' that is incremented by 1 and it becomes
'b'. ASCII value of 'b' is 98. Both 11 and 98 is added and result is subtracted from 32. i.e.
(11+98-32)=77("M");

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

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

To scan a and b given below, which of the following scanf() statement will you use?
#include
float a;
double b;

Options
1) scanf("%f %f", &a, &b);
2) scanf("%Lf %Lf", &a, &b);
3) scanf("%f %Lf", &a, &b);
4) scanf("%f %lf", &a, &b);

Asked In C (12 years ago)
Unsolved Read Solution (12)
Is this Puzzle helpful?   (86)   (33) Submit Your Solution Program

(#M40157040) C QUESTION Logical series Keep an EYE Keep an eye puzzle Keep an eye puzzle

1 2 4 3 6 5 8 7 9 11.......N

Asked In C md shabbir ahmad (9 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (8)   (4) Submit Your Solution undefined

(#M40152320) C QUESTION output question Keep an EYE Keep an eye puzzle Keep an eye puzzle

Find the output.
main()
int i;
pf("%d",i);

1.0
2.NULL
3.GARBAGE VALUE
4.COMPILE ERROR

Asked In C AMRITA PADHI (10 years ago)
Unsolved Read Solution (24)
Is this Puzzle helpful?   (3)   (0) Submit Your Solution Output

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

Write down the equivalent pointer expression for
referring the same element a[i][j][k][l]?

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

(#M40166816) C QUESTION c-programming Keep an EYE Keep an eye puzzle Keep an eye puzzle

interview question slove

Asked In C s.ravikumar (5 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (6)   (5) Submit Your Solution Program

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

If char=1, int=4, and float=4 bytes size, What will be the output of the program ?
#include

int main()
{
char ch = 'A';
printf("%d, %d, %d", sizeof(ch), sizeof('A'), sizeof(3.14f));
return 0;
}
Options
1) 1, 2, 4
2) 1, 4, 4
3) 2, 2, 4
4) 2, 4, 8

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

(#M40164800) C QUESTION Tricky While loop Keep an EYE Keep an eye puzzle Keep an eye puzzle

#include
int main()
{
int i;
while(sizeof(NULL))
{
printf("inside loop");
continue;
break;
}
return 0;
}

Asked In C jayakumar (8 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (18)   (1) Submit Your Solution Output
Keep an EYE (0)
Solved Question (6) UnSolved Question (454)
Pages: 46FirstPrev6789101112131415NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

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

Maths Quotes

There is no excellent beauty that has not some strangeness in the proportion.

Sir Francis Bacon

" Mathematics gives the photograph of life. "

Elmor Earl F.Leonor

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