| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| How do I declare an array of N pointers to functions
returning pointers to functions returning pointers
to characters?
| | 1 |
| to find the program of matrix multiplication using arrays | | 1 |
| Which of the following are valid "include" formats?
A)#include and #include[file.h]
B)#include (file.h) and #include
C)#include [file.h] and #include "file.h"
D)#include <file.h> and #include "file.h"
| Accenture | 12 |
| What is macro? | IBM | 3 |
| What is the output for the program given below
typedef enum grade{GOOD,BAD,WORST,}BAD;
main()
{
BAD g1;
g1=1;
printf("%d",g1);
}
| ADITI | 2 |
| Which command is more efficient?
*(ptr+1) or ptr[1] | | 3 |
| Can u return two values using return keyword? If yes, how?
If no, why? | | 6 |
| WAP – represent a char in binary format
| Motorola | 4 |
| How to access or modify the const variable in c ? | HP | 3 |
| What is false about the following
A compound statement is
a.A set of simple statments
b.Demarcated on either side by curly brackets
c.Can be used in place of simple statement
d.A C function is not a compound statement.
| TCS | 1 |
| what are the static variables
| HCL | 7 |
| 4.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 | 4 |
| why should i select you? | Wipro | 17 |
| WHY DO WE USE A TERMINATOR IN C LANGUAGE? | | 2 |
| consider the following program sigment
int n,sum=1;
switch(n) {
case 2:sum=sum+2;
case 3:sum*=2;
break;
default:sum=0;}
if n=2, what is the value of sum
a.0
b.6
c.3
d.none
| TCS | 3 |
| What is structure padding ? | HP | 1 |
| #define DCHAR char*
typedef char* TCHAR;
if using these following variables will be declared like
DCHAR ch1, ch2;
TCHAR ch3, ch4;
then what will be types of ch1, ch2, ch3 and ch4?
| NDS | 1 |
| write a program to find the number of even integers and odd
integers in a given array in c language | Olive-Tech | 2 |
| Here is alphabets : abcdefgh
1) how to reverse. as hgfedcba
2) after reversal, how to group them in a pair hg fe dc ba.
| | 1 |
| Who is invented by c? | Infosys | 12 |
| |
| For more C Interview Questions Click Here |