| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is the difference between c and java? | | 1 |
| #include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
Find the output | CitiGroup | 4 |
| C program to perform stack operation using singly linked list | | 1 |
| how many argument we can pas in in a function | CTS | 20 |
| what is the defrenece between structure and union | | 5 |
| how to find out the biggest element (or any other
operation) in an array which is dynamic. User need not to
mention the array size while executing. | | 2 |
| can we print any string in c language without using
semicolon(;)(terminator) in whole program. | | 6 |
| User define function contain thier own address or not. | | 2 |
| What is volatile in c language? | HCL | 1 |
| Consider a language that does not have arrays but does have
stacks as a data type.and PUSH POP..are all defined .Show
how a one dimensional array can be implemented by using two
stacks. | Google | 3 |
| main()
{
printf(5+"good morning");
printf("%c","abcdefgh"[4]);
}the o/p is morning and e...how someone explain | | 1 |
| HOW TO ANSWER IF ASKED " WHAT KIND OF A PERSON ARE YOU?" I
NEED AN ANSWER THAT IMPRESS THE INTERVIEWER | | 2 |
| What kind of sorting is this?
SORT (k,n)
1.[Loop on I Index]
repeat thru step2 for i=1,2,........n-1
2.[For each pass,get small value]
min=i;
repeat for j=i+1 to N do
{
if K[j]<k[min]
min=j;
}
temp=K[i];K[i]=K[min];K[min]=temp;
3.[Sorted Values will be returned]
A)Bubble Sort
B)Quick Sort
C)Selection Sort
D)Merge Sort | Accenture | 3 |
| difference between function & structure | Verizon | 5 |
| What does extern mean in a function declaration? | | 2 |
| 6. Which of the Following is not defined in string.h?
A)strspn()
B)strerror()
C)memchr()
D)strod()
| Accenture | 1 |
| any string of bits of length 'n' represents a unique non-
negative integer between.............? | | 2 |
| f(char *p)
{
p=(char *)malloc(sizeof(6));
strcpy(p,"HELLO");
}
main()
{
char *p="BYE";
f(p)
printf("%s",p);
}
what is the output?
| Hughes | 6 |
| 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 |
| write a program structure to find average of given number | | 1 |
| |
| For more C Interview Questions Click Here |