| Other C Interview Questions |
|| Asked @
|What are the various topologies? Which one is the most secure?
|Just came across this question, felt worth sharing, so here
I want you to make a C/C++ program that for any positive
integer n will print all the positive integers from 1 up to
it and then back again!
Let's say n=5 I want the program to print: 1 2 3 4 5 4 3 2 1.
Too easy you say?
Okay then... You can ONLY USE:
1 for loop
1 printf/cout statement
2 integers( i and n)
and as many operations you want.
NO if statements, NO ternary operators, NO tables, NO
pointers, NO functions!
what is the output?
|difference between my-strcpy and strcpy ?
|What does the message "warning: macro replacement within a
string literal" mean?
|Write a function that accepts a sentence as a parameter, and
returns the same with each of its words reversed. The
returned sentence should have 1 blank space between each
pair of words.
Demonstrate the usage of this function from a main program.
Parameter: “jack and jill went up a hill” Return Value:
“kcaj dna llij tnew pu a llih”
|How to removing white spces in c programming only bu using
pritnf(" in fuction %d",MACRO);
#define MACRO 10
printf("in test function %d", MACRO);
printf("in main %d",MACRO);
|write aprogram for
There is a mobile keypad
with numbers 0-9 and alphabets on it. take input of 7 keys
and then form a
word from the alphabets present on those keys.
if(x > 0)
above function is called as:
what will it print?
|who will call your main function in c under linux?
|Difference between C and Embedded C?
|For more C Interview Questions Click Here |