| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| 2)#include<iostream.h>
main()
{
printf("Hello World");
}
the program prints Hello World without changing main() the
o/p should
be
intialisation
Hello World
Desruct
the changes should be
a)iostream operator<<(iostream os, char*s)
os<<'intialisation'<<(Hello World)<<Destruct
b) c) d)none of the above | Siemens | 4 |
| a=0;
while(a<5)
printf("%d\n",a++);
how many times does the loop occurs?
a.infinite
b.5
c.4
d.6
| TCS | 5 |
| can you explain in brief what is "r+" mode in a file... i
know that it si used to read and modify rhe existing
content.... but explalanation about the file pointer in "r+"
mode i wann to know??????????? | Cognizent | 1 |
| HOW TO SWAP TWO NOS IN ONE STEP? | Satyam | 12 |
| Sir i want e-notes of C languge of BAlaguruswami book i.e
scanned or pdf file of balaguruswamy book on c
language.PLEASE SEND ME on my mail id ajit_kolhe@rediff.com
| | 4 |
| why you will give me a job in TCS. | TCS | 5 |
| Study the Following Points:
a.One Cannot Take the address of a Bit Field
b.bit fields cannot be arrayed
c.Bit-Fields are machine Dependant
d.Bit-fields cannot be declared as static
1. Which of the Following Statements are true w.r.t Bit-
Fields
A)a,b&c B)Only a & b C)Only c D)All
| Accenture | 2 |
| explain about storage of union elements. | Bosch | 2 |
| what is diff b/w huge & far & near pointer?? | HCL | 1 |
| write a programme that inputs a number by user and gives
its multiplication table. | | 2 |
| how many times of error occur in C | | 7 |
| in C-programming language without using printf statement
can we get output r not ? if yes how and if no also how ?
| | 6 |
| How can I access memory located at a certain address? | | 2 |
| pick out the odd one out of the following
a.malloc()
b.calloc()
c.free()
d.realloc()
| TCS | 1 |
| write a program to find the sum of the array elements in c
language? | | 8 |
| totally how much header files r in c language | TCS | 4 |
| You are given a string which contains some special
characters. You also have set of special characters. You are
given other string (call it as pattern string). Your job is
to write a program to replace each special characters in
given string by pattern string. You are not allowed to
create new resulting string. You need to allocate some new
memory to given existing string but constraint is you can
only allocate memory one time. Allocate memory exactly what
you need not more not less. | Microsoft | 2 |
| enum day = { jan = 1 ,feb=4, april, may}
what is the value of may?
a)4 b)5 c)6 d)11
e)none of the above
| HCL | 2 |
| What is memmove? | Oracle | 1 |
| Give me basis knowledge of c , c++... | | 4 |
| |
| For more C Interview Questions Click Here |