-
-
-
Open Files Simultaneously
How will you increase the allowable number of simultaneously open files?
-
-
Function Call
How will you call a function, given its name as a string?
-
-
File Compression
How can we compress any text file using c. can anybody provide me sample code
-
Invoke Another Program
How will you invoke another program from within a C program?
-
C Program Execution Stages
Briefly explain the stages in execution of C program? How are printf and scanf statements statements being moved into final executable code?
-
C Pointer Size
If p is declared as char *p then what is size of(*P)?
-
Nested if statement
How many nested if statements are allowed in C?
-
Tiny, large, huge memory models
I need the above said memory types explanation.
Please tell me any one. -
Write function vowels to count the vowels and letters
Write function vowels to count the vowels and letters in free text given as string. Then print out the number of occurrences of each of the vowels a, e, i, o and u in the string, the total number of letters, and each of the vowels as an integer percentage of the letter total.
Suggested output format is:
Numbers of characters:
a 3 ; e 2 ; i 0 ; o 1 ; u 0 ; rest 17 -
Short int and int
What is the difference between short int and int?
-
C code explanation
struct marks
{
int p:3;
int c:3;
int m:2;
};
void main()
{
struct marks s={2,-6,5};
printf("%d%d%d",s.p,s.c,s.m);
} -
-
-
Write your own function stringSize which takes a string s as a parameter and returns its length.
Example:
stringSize(“hello”) returns 5 -
-
Decrement operator in C
int a=3,y;
y=++a + a+++ --a+ ++a;
printf("%d%d",y,a);
Why value of y become 16.
C Interview Questions
Ans