C language interview questions solution for freshers beginners placement tricky good pointers answers explanation operators data types arrays structures functions recursion preprocessors looping file handling strings switch case if else printf advance linux objective mcq faq online written test prime numbers Armstrong Fibonacci series factorial palindrome code programs examples on c++ tutorials and pdf
Write a program in C to delete all chars in a Text file before encountering word "WORD". after encountering word "WORD, copy 2 to 100 long long ints from file seperated by commas until you get word "/WORD"
Hi Aman verma, Yes if z>=y>=x is true then it will print 100.But in questions 9, it is not true. Please look the explanation carefully. Hints: Read about return type of conditional operators,precedence and associate of operators.
Can I know the answer to: Write a program that reads a list of integers from the keyboard and creates the following information: a.)Finds and prints the sum and the average of the integers. b.)Find and prints the smallest integer. c.)Prints a Boolean(true or false) if some of them are less than 20. d.)Prints a Boolean (true or false) if all of them are between 10 and 90. Please help me out to solve this Problem :)
what the hell? in question 3, the ELSE part is executed which prints out the value of x. the value of x is still 25 and is unchanged by operator used inside the condition to be verified in the IF statement.
Write a C++ program that will print the pattern as shown below: Output: * *** ***** ******* ********* ********* ******* ***** *** * plz tell me the ans in this email juxt.fawad880@gmail.com
Write a C program for a restaurant given the following: The restaurant has a policy for large parties of dinners. If a party has 10 or more people, a 15% service charge is automatically added to the bill. If there are fewer than 10 people, no service charge is added. Write a program that reads the number of people in the party and the amount of money that each person is to pay alone, and then calculates and prints the total bill including service charge (if there is a charge). can you answer this question please?
105 comments:
Excellent work, Mr. Blogger. I am a fresher student. I am trying to understand C language. This post is MOST HELPFUL..!!!
God bless you. Please keep up the good work
Write a program in C to delete all chars in a Text file before encountering word "WORD". after encountering word "WORD, copy 2 to 100 long long ints from file seperated by commas until you get word "/WORD"
Adam
now i m very happy..it is useful to improve my c laguage skills... i can feel very happy to solve these questions.... thank u
sanjapu shiva
where r the damn answers..
how would we telly our answers...
great job!!
really good questions! these really helped to clear up my concepts!
Thanks!
how the answer of question number 19 is 10?
Please Explain.
where are the answers given.can u explain answers of qno 23 and 39.?
thank you sir, iam shashank tomar mca student,you are giving good questions.
sir these problems are very good . everyone can understand about c LAn through it.
but their is no programs like to see reverse programs etc so plz also add sum prgrm like dnt ask vch one is correct out put
where is answer?????????????
very easy questions .include pointers and linked lists.then may b cmplcatd
where r answers?
no use without answers!!!!!!!!!!!!
no use without answers!!!!!!!!!!!!
u r correct re.....no use without answers!!!!!
dam it this are easy ones, u can give bit complicated, if u add pointers and linked lists it will be useful
answer of 16th ques would be 6 , not 9...
i am very happy you improve my c laguage skills... i can feel very happy to solve these questions.... thank u
Hi Anamika,
I checked answer again. Answer of question 16. is correct. Please check the explanation
very good bosss
give the ans of 18 q
thanks...
it revised me all things that i have read in the start of semester...
and hopefully it will help me in my terminal!
hi sir
these questions are very good and helpful in understanding C
ur explanation way is great
thanks sir
i m very happy to see this problem.
Hi sir...
Really its a awesome explanation about this C language...
good job bro....can u think abt that...
printf("%d", (z>=y>=x?100:200));
if the z>=y>=x is true than it print outs 100 not 200
Hi Aman verma,
Yes if z>=y>=x is true then it will print 100.But in questions 9, it is not true. Please look the explanation carefully.
Hints: Read about return type of conditional operators,precedence and associate of operators.
thanx a lot i was searching on net in no.s of site but no one was better then this
18 is not correct.. its actually "Lvalue required error" Compilation error
LOL
hi all q r good
Thank u so much..
this s very useful to me..
Thnxxxxx
These ques r very good and hardddd,.....
Good Questions!!!!!!
You cleared my fundamentals
Thanks alot
Its good for a beginner
Request: Please provide the explanation of 14 & 15 questions.
Thanks
good question......
how the key-word in c language
good work boss.
i enjoyed the questions :)
-Rahil
work done is good...
but there are some mistakes in answers...
question collection reflects some good concepts...
hi.....
nice Q...but some Qustion are vry difficult/
really great-:)
Thanks dear, this blog is good to clear many concept.
this are really good cleard my concept
i want to mora and more Question
ya to baccho wala khal tha.............
plz give high level Question sirrrrrrrrrrrrrrr
Superb one's No words seriously
these questions are very good and helpful in understanding C
ur explanation way is great
great job
keep it up
ya its very useful to me to improve my skills in c...
any way thanks for ur work blogger
good work..
importance of return type in main function
very very very usefull this type of obj qns in interview
thanks anamika
thanks you are doing very good work for the student it is very helpful to every student.
its really a nice one which developes our skill in c programming......
so i am always grateful to u
Thanks a lot! I enjoyed doing it!
Some of the questions have answers, but it won't compile in a gcc compiler. You should consider that!
you are very interesting one.i like you ,sir.
thanks.....
thank you very much ,you have done very good job,
blessings in tons, may god bless you.
if you have any doubt or query
please contact me at geniushkg@gmail.com
17 th is not clear plzzzzzzz explain......
SIR KEEP IT UP THAT'S THE NICE WAY TO BUILT KNOWLEDGE OF A PROGRAMMER.
AARAV
Good post but you need much care for answers
I improve best programming knowledge using this quiz....
thanx,good work
thank you ....
correct ra 16 que ans is 6
Here we can find multiple choice, this is great way and you are given to this information to us, help of this e book we study and gain some knowledge.
ans. of 18th question is wrong.it would be E option.
hey its to good,thx a lot
AWESOME WORK DUDE......bless you!!
how to make a quiz programme in c language ?
VERY GOOD QUESTION AND ANSWER BUT I NEED MORE TRICKY QUESTION. PLZZZZZZZZZZZZZZZZZZ
good work.
Lai Bhari
awesome question
i=0;
i= i++ + ++i + i++ + i;
output=?
A very good work u r doing.Thanks .............
plz. post more on pointers
pleas post more question
#include
#include
void main(){
int i;
(i=8)+=1;
printf("%d",i);
}
In your answers its showing 34. But I executed this and got output 9..
dear dasu answer is correct 9
thanks...........my improve c....so thanks very good question
# include
main()
{
int a ;
if(a = 0)
printf("true");
else
printf("false");
}
output: true.
why the output is true when the value of a is 0
you should write if(a==0)
a=0 means 0 is assigning to variable a and in c 0 means false and any non-zero values means true
Can I know the answer to:
Write a program that reads a list of integers from the keyboard and creates the following information:
a.)Finds and prints the sum and the average of the integers.
b.)Find and prints the smallest integer.
c.)Prints a Boolean(true or false) if some of them are less than 20.
d.)Prints a Boolean (true or false) if all of them are between 10 and 90.
Please help me out to solve this Problem :)
#include
#include
void main(){
int a[]={0,1,2,3,4,5,6,7,8,9,10};
int i=0,num;
num=a[++i+a[++i]]+a[++i];
printf("%d",num);
}
why its ans is 9 i didn't get it
must say a good work indeed...
your qs have really made me feel more comfortable....
thanks!!
sir in question number 17 f shoul have a prototype ......
in question 18 the answer will be 9 not 34
what the hell? in question 3, the ELSE part is executed which prints out the value of x. the value of x is still 25 and is unchanged by operator used inside the condition to be verified in the IF statement.
hi sir i am rohit you are giving good questions .thank
s for this.....
these questions as well as answers are very much useful to freshers... thank u...keep posting further..
your explanation are very well. nice work done
Superb material
i have a doubt .
in an expression , operation will be left to right or right to left ?
thanq admin... you made me know some unknown facts in 'C'
it depends on the order of precedence...
like:
1. ( ) left to right
2. ++ -- ! -(unary minus) right to left
3. * / % left to right
etc....
these questions are really awsome
nice.....superb..........
Can u mail these question to me plz..
harish.wheeler@gmail.com
1.() left to right
2.++ -- ! right to left
3.* / % left to right
ans is 3
explanation:
i++=1
++i=1
i++ + ++i=2
1++=1
i++ + ++i + ++i=3
i=0;3+0=3
Sir Question No 16, I think I am not able to understand what the right answer would be 8 if you can tell me the correct answer
Write a C++ program that will print the pattern as shown below:
Output:
*
***
*****
*******
*********
*********
*******
*****
***
*
plz tell me the ans in this email juxt.fawad880@gmail.com
plz explain the question no. 7 and 18....
Write a C program for a restaurant given the following: The restaurant has a policy for large parties of dinners. If a party has 10 or more people, a 15% service charge is automatically added to the bill. If there are fewer than 10 people, no service charge is added. Write a program that reads the number of people in the party and the amount of money that each person is to pay alone, and then calculates and prints the total bill including service charge (if there is a charge). can you answer this question please?
wap to enter five number and print them , but only when number is non zero ( while & if elde)
Post a Comment