C Linux Interview Questions and Answers
C Linux Interview Questions and Answers
Share 0
C language tricky good pointers questions answers and explanation operators data types arrays structures questions fun recursion preprocessors, looping, file handling, strings questions switch case if else printf advance c linux objective types faq interview questions and answers with explanation and solution for freshers or beginners. Placement online written tes numbers Armstrong Fibonacci series factorial palindrome code programs examples on c c++ tutorials and pdf
C tutorial C Programming Questions C Interview Questions C Programs C Test C programming pdf Program of c++ Create projects
SHARE POSTS
Tw eet
www.Naukri.com/C++_Jobs
Search
Ads by Google
C program examples C interview questions and answers Data type questions Variable naming rule questions Operators questions Control flow questions Switch case questions Looping questions Pointer questions String questions Printf,Scanf questions Preprocessor questions Structure questions Commad line argument C questions in Linux C online test C mixed practice sets C tricky questions Example of recursion in c C programming forums
C TUTORIAL
Memory mapping tutorial in c Variables tutorial in c Data types tutorial in c Storage classes tutorial in c
( 2 ) W h a tw i l lb eo u t p u ti fy o uw i l le x e c u t ef o l l o w i n gp r o g r a mb yg c c c o m p i l e ri nL i n u x ? # i n c l u d e < s t d i o . h > i n tm a i n ( ) { i n ta = 5 , b = 1 0 , c = 1 5 , d = 2 0 ;
1/6
www.cquestions.com/2012/02/c-linux-interview-questions-and-answers.html
10/10/12
Looping tutorial in c Pointers tutorial in c Function tutorial in c Array tutorial in c Preprocessor tutorial in c Advanced c tutorial
p r i n t f ( " % d% d% d " ) ; r e t u r n0 ;
O u t p u t : I nL I N U XG C Cc o m p i l e r G a r b a g ev a l u e s I nT U R B OC 51 01 5 H i n t s :L o c a lv a r i a b l e ss t o r e si nt h es t a c k .
POPULAR POSTS
C program examples QUICK SORT USING C PROGRAM C interview questions and answers C multiple choice questions and answers pdf TO FIND FIBONACCI SERIES USING C PROGRAM Find out the perfect number using c program Tricky c questions and answers Data type questions in c SELECTION SORT USING C PROGRAM TO FIND FACTORIAL OF A NUMBER USING C PROGRAM
Subscribe
Delivered by FeedBurner
C questions and answers Debugging questions in c with answers Aptitude questions and answers in c C basic questions Multiple choice questions in c
STANDARD OF QUESTIONS ? Excellent Good Avg Worst Vote Show results
N o t e :I nL i n u xt h e r ei sn o ta n yc o n c e p to fn e a r ,f a ra n dh u g ep o i n t e
SUBSCRIBE TO
Posts Comments
H i n t s :s i z eo fa n yt y p eo fp o i n t e ri nL i n u xi s4a n di nt u r b oci s2
MY HEADLINES
( 6 )W h a tw i l lb eo u t p u ti fy o uw i l le x e c u t ef o l l o w i n gp r o g r a mb yg c c c o m p i l e ri nL i n u x ? # i n c l u d e < s t d i o . h >
2/6
www.cquestions.com/2012/02/c-linux-interview-questions-and-answers.html
10/10/12
Debugging questions in c with answers Aptitude questions and answers in c C basic questions Multiple choice questions in c Objective questions of c Program in c language Simple program example in c language Tricky c questions and answers C programming online test C Linux interview questions and answers Looping questions in c and answers C string questions and answers with explanation C operator questions with answers Check the given number is palindrome number or not using c program C pointers questions Data type questions in c Check given number is prime number or not using c program struct bit fields questions in c C questions answers C interview questions and answers How to test palindrome in c++ Palindrome number in c++ Program of palindrome number in c++ C++ code to get sum of all odd numbers in given range
i n tm a i n ( ) { s h o r ti n ta = 5 ; i n tb = 5 ; l o n gi n tc = 5 l ; f l o a td = 5 . 0 f ; d o u b l ee = 5 . 0 ; l o n gd o u b l ef = 5 . 0 L ; c h a rg = ' 5 ' ; p r i n t f ( " S i z eo fs h o r ti n t :% d \ n " , s i z e o f ( a ) ) ; p r i n t f ( " S i z eo fi n t :% d \ n " , s i z e o f ( b ) ) ; p r i n t f ( " S i z eo fl o n gi n t :% d \ n " , s i z e o f ( c ) ) ; p r i n t f ( " S i z eo ff l o a t :% d \ n " , s i z e o f ( d ) ) ; p r i n t f ( " S i z eo fd o u b l e :% d \ n " , s i z e o f ( e ) ) ; p r i n t f ( " S i z eo fl o n gd o u b l e :% d \ n " , s i z e o f ( f ) ) ; p r i n t f ( " S i z eo fc h a r :% d \ n " , s i z e o f ( g ) ) ; r e t u r n0 ; } O u t p u t : I nL I N U XG C Cc o m p i l e r S i z eo fs h o r ti n t :2 S i z eo fi n t :4 S i z eo fl o n gi n t :4 S i z eo ff l o a t :4 S i z eo fd o u b l e :8 S i z eo fl o n gd o u b l e :1 2 S i z eo fc h a r :1 I nT U R B OC S i z eo fs h o r ti n t :2 S i z eo fi n t :2 S i z eo fl o n gi n t :4 S i z eo ff l o a t :4 S i z eo fd o u b l e :8 S i z eo fl o n gd o u b l e :1 0 S i z eo fc h a r :1
ABOUT ME
Ads by Google
( 9 )W h a tw i l lb eo u t p u ti fy o uw i l le x e c u t ef o l l o w i n gp r o g r a mb yg c c c o m p i l e ri nL i n u x ?
www.cquestions.com/2012/02/c-linux-interview-questions-and-answers.html 3/6
10/10/12
10/10/12
I nL I N U XG C Cc o m p i l e r S i z eo fl o n gi n t :4 S i z eo fl o n gd o u b l e :1 2 I nT U R B OC S i z eo fl o n gi n t :4 S i z eo fl o n gd o u b l e :1 0
O u t p u t : I nL I N U XG C Cc o m p i l e r 1 I nT U R B OC 1 H i n t s :A n yc o n d i t i o n a lo rr e l a t i o n a lo p e r a t o rr e t u r n s1i fc o n d i t i o n t r u eo t h e r w i s ei tr e t u r n s0 .
I f y o u h a v e a n y q u e r i e s o r s u g g e s t i o n s i n a b o v e c L i n u x i n t q u e s t i o n s ,p l e a s es h a r ei t .
5 comments:
Imran Mirza said... Very Useful Tutorial 2/9/12 11:39 PM
Anonymous said... why answer of 1st question is 7 6 8 in linux . what is the concept behind it. 3/30/12 3:01 PM
Bijoooos said...
(a++, a++, ++a) means it starts from right-side , ++a will increment a value and replaces the final value of a, now and next expr a++ increment a and replaces previous value of a ( 6 ), now a= 7, next a++ also increment a and replaces previous value of a (7), now a=8, that value in place of ++a, whenever ++a is coming all will replaced by final value of a 4/3/12 1:19 AM
kibrom gebre said... would you clarify me why the output of question number 3 is 22 22 8.Thanks! 6/28/12 4:41 AM
Anonymous said... Could any one please clarify the post fix and pre fix argument evaluation . 7/2/12 9:06 PM Post a Comment
www.cquestions.com/2012/02/c-linux-interview-questions-and-answers.html
5/6
10/10/12
MUST VISIT
Ads by Google
codepad
login
Language: C
# i n c l u d e< s t d i o . h > i n tm a i n ( i n ta r g c ,c h a r* a r g v [ ] ) { r e t u r n0 ; }
Private [?]
C LOVER COMMUNITY
Help the community by publishing your posts Copyright@ritesh kumar. Powered by Blogger.
www.cquestions.com/2012/02/c-linux-interview-questions-and-answers.html
6/6