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

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

(#M40037091) C QUESTION C-PROGRAMING Keep an EYE Keep an eye puzzle Keep an eye puzzle

Find the output for the following C program
fn f(x)
{ if(x<=0)
return;
else f(x-1)+x;
}

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

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

Q. What will be printed as the result of the operation below:
main()
{
int a=0;
if(a==0)
printf(“Cisco Systemsn”);
printf(“Cisco Systemsn”);
}

Asked In C MAN (12 years ago)
Unsolved Read Solution (4)
Is this Puzzle helpful?   (16)   (5) Submit Your Solution Coding Decoding
Advertisements

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

Point out the error if any in the following program (Turbo C).
#include
#include
void display(int num, ...);

int main()
{
display(4, 'A', 'a', 'b', 'c');
return 0;
}
void display(int num, ...)
{
char c; int j;
va_list ptr;
va_start(ptr, num);
for(j=1; j<=num; j++)
{
c = va_arg(ptr, char);
printf("%c", c);
}
}
Options
1) Error: unknown variable ptr
2) Error: Lvalue required for parameter
3) No error and print A a b c
4) No error and print 4 A a b c

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

(#M40156460) C QUESTION series Keep an EYE Keep an eye puzzle Keep an eye puzzle

write a logic for following series 2,6,15,35,143,221,323,437,..........

Asked In C bharat kumar (9 years ago)
Unsolved Read Solution (6)
Is this Puzzle helpful?   (17)   (6) Submit Your Solution Program

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

output?
#define square(x) x*x
main()
{i
nt i;
i = 64/square(4);
printf("%d",i);
}

Answer: 64

Explanation: the macro call square(4) will substituted by 4*4 so the expression becomes i = 64/4*4 . Since / and * has equal priority the expression will be evaluated as (64/4)*4 i.e. 16*4 = 64

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

(#M40155444) C QUESTION Palindrom or not Keep an EYE Keep an eye puzzle Keep an eye puzzle

A no is palindrome if it equal to the no formed by reversing its decimal reapesent no.
Input you need to fill in a function which takes two
Input: Input1-length of array,
1<=input1<=100 input2-an array of +ve integer
output: set output1[i], 0<=i=<:input1, to "Palindrome" otherwise set it to "not"
eg: input: 2{101,12}
output:{Palindrome, Not}

Asked In C malini roy choudhury (9 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (1)   (1) Submit Your Solution Arrays

(#M40155468) C QUESTION Type casting in C Keep an EYE Keep an eye puzzle Keep an eye puzzle

What is the output and why?
#include
int main(){
int i=(char)65;
printf("%d %c %f %d",i,i,i,i);
return 0;
}

Asked In C Naresh Babu (9 years ago)
Unsolved Read Solution (6)
Is this Puzzle helpful?   (10)   (3) Submit Your Solution Output

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

sort the elements of an array without using any another array how to make this program

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

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

Does there exist any other function which can be used to
convert an integer or a float to a string?

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

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

The keyword used to transfer control from a function back to the calling function is

Options
1) switch
2) goto
3) go back
4) return

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

Resend

Sponsored Links

Advertisements

Challenger of the Day

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

Maths Quotes

" MATHEMATICS can be your best friend if you will use it frequently but it can be your worst enemy if you will neglect using it daily."

Elmor Earl F.Leonor

Mathematics is the heart of the World

SrinivasuluReddy

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