Follow Quotesrain
  • 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

C interview questions and answers for freshers

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 260
  • 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: 46123456789NextLast
Advertisements

(#M40167106) C QUESTION how this works Keep an EYE Keep an eye puzzle Keep an eye puzzle

int i=3,j=2,k=0,m;
m = ++i && ++j || ++k;
printf(“%d %d %d %d”, i , j, k,m);

Asked In C Krishna Kumar M (1 year ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (7)   (3) Submit Your Solution Arrays

(#M40167105) C QUESTION How many elements in the array? Keep an EYE Keep an eye puzzle Keep an eye puzzle

When we write num[100] = 99.
How many elements can be stored inside the array variable num?

A. The statement gives no clue about the number of elements can be stored
B. 100
C. Infinite number of elements
D. 99

Asked In C Jax (1 year ago)
Unsolved
Is this Puzzle helpful?   (8)   (1) Submit Your Solution Arrays
Advertisements

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

interview question slove

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

(#M40166240) C QUESTION juspay interview question Keep an EYE Keep an eye puzzle Keep an eye puzzle

You are given a forest (it may contain a single tree or more than one tree) with N nodes.

Each node is given an integer value 0 to (N­-1).

You have to find:
The depth of forest at which maximum number of nodes are present.
N can be very large. Aim for an algorithm with a time complexity of O(N).

INPUT FORMAT

An integer T, denoting the number of testcases, followed by 2T lines, as each testcase will contain 2 lines.
First line of each testcase has the value of N.
Second line of each testcase has list of N values where the number at index i is the parent of node i. The parent of root is -1. ( The index has the range [0, N­-1] ).

OUTPUT FORMAT

For each testcase given, output a single line that has the depth of forest at which maximum number of nodes are present. If multiple depths has same number of nodes, then deepest depth should be selected.

SAMPLE INPUT

2

6

5 -1 1 1 5 2

13

4 3 -1 -1 1 2 7 3 1 4 2 1 2



SAMPLE OUTPUT

3

1

Asked In C Mohamed yasin (3 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (33)   (41) Submit Your Solution Variables

(#M40166221) C QUESTION c mcq's Keep an EYE Keep an eye puzzle Keep an eye puzzle

solving ability with enhanced problems

Asked In C manoj (3 years ago)
Unsolved
Is this Puzzle helpful?   (1)   (4) Submit Your Solution Arrays

(#M40166053) C QUESTION Encryption Keep an EYE Keep an eye puzzle Keep an eye puzzle

Why is 0xFACA used in a program?

Asked In C Sandip Hazra (4 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (4)   (10) Submit Your Solution Arrays

(#M40166042) C QUESTION write the code snippet Keep an EYE Keep an eye puzzle Keep an eye puzzle

you must implement the function isTriangle( Point *P1,Point *P2,Point *P3) to accept three points as inputs and checks wether the given three points form vertices of triangle.
If They form a triangle then function returns 1 else function returns 0
use point structure.


int isTriangle( Point *P1,Point *P2,Point *P3)
{
// write your code here
}

Asked In C sandeep bhat (4 years ago)
Unsolved Read Solution (4)
Is this Puzzle helpful?   (76)   (42) Submit Your Solution Arrays

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

What will be the output of the C program, if input is 6?

#include
int main()
{
unsigned char i = 0;
for(;i<=0;i++) ;
printf("%dn",i);
return 0;
}

Asked In C Sandip Hazra (4 years ago)
Solved Arka Mondal Read Solution (6)
Is this Puzzle helpful?   (20)   (11) Submit Your Solution Output

(#M40165900) C QUESTION write a program for replace characters in astring with other characters Keep an EYE Keep an eye puzzle Keep an eye puzzle

ex:apple
op:other characters wat u give

Asked In C Divya (4 years ago)
Unsolved
Is this Puzzle helpful?   (1)   (7) Submit Your Solution Output

(#M40165556) C QUESTION print the pattern of the following form containing the numbers from 1to n Keep an EYE Keep an eye puzzle Keep an eye puzzle

4 4 4 4 4 4 4
4 3 3 3 3 3 4
4 3 2 2 2 3 4
4 3 2 1 2 3 4
4 3 2 2 2 3 4
4 3 3 3 3 3 4
4 4 4 4 4 4 4

Asked In C Sannapureddy Srinivasareddy (4 years ago)
Unsolved Read Solution (5)
Is this Puzzle helpful?   (21)   (1) Submit Your Solution Program
Keep an EYE (0)
Solved Question (6) UnSolved Question (454)
Pages: 46123456789NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

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

Maths Quotes

THE ESSENCE OF MATHEMATICS IS NOT TO MAKE SIMPLE THINGS DIFFICULT BUT TO MAKE DIFFICULT THINGS SIMPLE.

anne.11

A problem can be thought in different angles by the MATBEMATICIAN

GSR

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 2 years ago

Thanks m4 maths for helping to get placed in several companies.
I must recommend this website for placement preparations.

yash mittal 3 years ago
  • 2476K+Registerd user
  • 1734K+Engineers
  • 742K+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