| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| swap two integer variables without using a third temporary
variable? | | 2 |
| A function 'q' that accepts a pointer to a character as
argument and returns a pointer to an array of integer can
be declared as:
A)int (*q(char*)) []
B)int *q(char*) []
C)int(*q)(char*) []
D)None of the Above
| Accenture | 2 |
| Write a C Programm..
we press 'a' , it shows the albhabetical number is 1, if we
press 'g' it shows the answer 7.. any can help me | | 4 |
| how can i get this by using for loop?
*
**
*
****
*
****** | Excel | 3 |
| 1. Write the function int countchtr(char string[ ], int ch);
which returns the number of times the character ch appears
in the string.
Example, the call countchtr(“She lives in NEWYORK”, ‘e’)
would return 3.
| | 2 |
| related to rdbms query . | | 1 |
| WAP TO ACCEPT STRING AND COUNT A COMES N TIMES B COMES N
TIMES C COMES N TIMES D COMES N TIMES AND SO ON.........
AT LAST UNTIL Z COMES N TIMES...............
| | 3 |
| main()
{
char *ptr = "Ramco Systems";
(*ptr)++;
printf("%s\n",ptr);
ptr++;
printf("%s\n",ptr);
}
Find the Outputs? | CitiGroup | 7 |
| program to get the remainder and quotant of given two
numbers with out using % and / operators? | IBM | 8 |
| who is the founder of c | HP | 9 |
| write a program to find the sum of the array elements in c
language? | | 8 |
| What is meaning of "Void main" in C Language. | TCS | 8 |
| WRITE A PROGRAM TO FIND A REVERSE OF TWO NO | | 5 |
| enum colors {BLACK,BLUE,GREEN}
main()
{
printf("%d..%d..%d",BLACK,BLUE,GREEN);
return(1);
}
| ME | 3 |
| #include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
Find the output | CitiGroup | 4 |
| what will happen if you free a pointer twice after
allocating memory dynamically ? | Novell | 2 |
| main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
} | NDS | 15 |
| for example user gives input as " 20 or 20.0 or rs 20.0 or
20.00 or rs20 and so .. on " and the output should be
stored as " rs.20.00 " in a variable | | 2 |
| palindrome for strings and numbers----Can anybody do the
prog? | TCS | 6 |
| What is the purpose of Scanf Print, getchar, putchar,
function? | | 2 |
| |
| For more C Interview Questions Click Here |