0% found this document useful (0 votes)
112 views5 pages

C Programming Interview Prep

The document discusses several questions asked in interviews at different technology companies. It includes questions about the difference between typedef and #define, writing a program to calculate the sum of fractions, what segmentation fault is and an example, and how malloc works. It then transitions to discussing the basics of programming languages, C fundamentals, and various C programming concepts like variables, data types, instructions, functions, arrays, pointers, strings, and structures.

Uploaded by

Sharath Babu
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
112 views5 pages

C Programming Interview Prep

The document discusses several questions asked in interviews at different technology companies. It includes questions about the difference between typedef and #define, writing a program to calculate the sum of fractions, what segmentation fault is and an example, and how malloc works. It then transitions to discussing the basics of programming languages, C fundamentals, and various C programming concepts like variables, data types, instructions, functions, arrays, pointers, strings, and structures.

Uploaded by

Sharath Babu
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Asked at Computer Sciences Corp Ltd (CSC) Diff between typedef and #define?

Asked at Capegemini India Pvt Ltd write a program where you have to enter two numbers in fraction say a/b and c/d and then calculate their sum and display their result in the reduced fraction form. Asked at Aditi Technologies what is segmentation fault? give one C code example, amd many more detailed questions on segmentation fault. Asked at Yash Technologies Pvt Ltd OS, networking and C aptitude questions. Asked at Siemens Information Systems Ltd How does malloc work?

INTRODUCTION WHAT IS A PROGRAM? WHAT IS A PROGRAMMING LANGUAGE? STEPS IN PROGRAMMING SKILLS NEEDED TO DO PROGRAMMING A LITTLE INTRODUCTION TO C WRITING A PROGRAM FUNDAMENTALS OF A PROGRAMMING LANGUAGE DIFFERENT PROGRAMMING TECHNIQUES PROCEDURAL PROGRAMMING MODULAR PROGRAMMING OBJECT ORIENTED PROGRAMMING GETTING STARTED WITH COMPILER

WORDS AND SENTENCES IN C LANGUAGE

ALPHABETS IN C KEYWORDS IN C RULES OF FORMING WORDS IN C LANGUAGE DATA VARIABLES, DATA TYPES AND RULES FOR NAMING AND DECLARING DATA VARIABLES BASIC DATA TYPES IN C CONSTANTS COMMENTS IN C

C INSTRUCTIONS AND RULES FOR WRITING

TYPES OF INSTRUCTIONS DATA MANIPULATION INSTRUCTIONS INPUT/OUTPUT INSTRUCTIONS

FLOW CONTROL INSTRUCTIONS

DECISION CONTROL INSTRUCTIONS IF IF-ELSE IF-ELSE-IF NESTED IF-ELSE

FLOW CONTROL INSTRUCTIONS

LOOP CONTROL INSTRUCTIONS FOR LOOP WHILE LOOP DO WHILE SELECTION INSTRUCTIONS

FUNCTIONS

WHY USE FUNCTIONS COMPONENTS OF FUNCTION NAME OF A FUNCTION BODY OF A FUNCTION LOCAL VARIABLES OF A FUNCTION PARAMETERS OR ARGUMENTS TO A FUNCTION RETURN VALUES PROTOTYPE OF A FUNCTION

ARRAYS

WHAT IS AN ARRAY? ARRAY DECLARATION ARRAY INITIALIZATION ACCESSING INDIVIDUAL ELEMENTS OF AN ARRAY TWO DIMENSIONAL ARRAYS PASSING AN ARRAY ELEMENT TO A FUNCTION RULES OF USING AN ARRAY

POINTERS

WHAT IS A POINTER? DECLARING A POINTER VARIABLE INITIALIZING A POINTER VARIABLE USING A POINTER VARIABLE POINTER ARITHMETIC POINTERS AND ARRAY PASSING AN ENTIRE ARRAY TO A FUNCTION

STRINGS

WHAT ARE STRINGS? STRING I/O STRING MANIPULATION FUNCTIONS

STRUCTURES

DECLARING AND ACCESSING STRUCTURE VARIABLES USES OF STRUCTURES UNIONS

STORAGE CLASSES AND SCOPING

AUTOMATIC REGISTER EXTERNAL STATIC


Well iam ............... basically i hail from ........... i was born /n /bought up from ..... i hold my bachlors/masters in........ i am the....... (studnt or employee fill in blank) prior to that i did my intermediate from........ and i did my s.s.c from....... i am persuing my ............... ABOUT MY FAMILY BACKROUND My father Mr.............. He is a.......... My mother she is a........ I have ... sublings. I have 2 brother n 2 sister. I WOULD LIKE TO TELL U MY STRENGTH. I am result oridented i am dedicated. i am optimist. I WOULD ALSO LIKE TO TELL U ABOUT MY HOBBIES I play cricket snnoker I listen to music. ........ ........ My short term goal is ...............(ex= to complete my communication skill class with confident)

my long term goal is..........(ex= To work for reliance or i want to do ms mba or mtec from ....) My favorite palce is ............(ex= hyderabad, dubai,or london.) and then at the end.. Thank u sir for giving me a wonderful opportunity to introduce my self thank you.

You might also like