C Interview Questions
Questions Answers Views Company eMail

how we do lcm of two no using c simple if while or for statement

1 3077

Write a program to find the given number is odd or even without using any loops(if,for,do,while)

CNC, Gokul,

4 5666

what is call by value and call by reference

4 4128




How to find the given no is odd or even without checking of any condition and loops. (Hint: Using array)

4 4072

what is difference between overriding and overloading?

1 2855

what is calloc and malloc?

2 6121

What are local and global variables?

3 2150

What is the scope of static variables?

1 3194




What is the difference between static and global variables?

1 1943

What are volatile variables?

Mind Tree,

1 2900

what is the use of ‘auto’ keyword?

1 2298

How do we make a global variable accessible across files? Explain the extern keyword?

653

what is a function prototype?

1 1927

what does keyword ‘extern’ mean in a function declaration?

Emerson,

1 3066

how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

TCS,

734


Post New C Questions






Un-Answered Questions { C }

I need testPalindrome and removeSpace #include #define SIZE 256 /* function prototype */ /* test if the chars in the range of [left, right] of array is a palindrome */ int testPalindrome( char array[], int left, int right ); /* remove the space in the src array and copy it over to the "copy" array */ /* set the number of chars in the "copy" array to the location that cnt points t */ void removeSpace(char src[], char copy[], int *cnt); int main( void ) { char c; /* temporarily holds keyboard input */ char string[ SIZE ]; /* original string */ char copy[ SIZE ]; /* copy of string without spaces */ int count = 0; /* length of string */ int copyCount; /* length of copy */ printf( "Enter a sentence:\n" ); /* get sentence to test from user */ while ( ( c = getchar() ) != '\n' && count < SIZE ) { string[ count++ ] = c; } /* end while */ string[ count ] = '\0'; /* terminate string */ /* make a copy of string without spaces */ removeSpace(string, copy, ©Count); /* print whether or not the sentence is a palindrome */ if ( testPalindrome( copy, 0, copyCount - 1 ) ) { printf( "\"%s\" is a palindrome\n", string ); } /* end if */ else { printf( "\"%s\" is not a palindrome\n", string ); } /* end else */ return 0; /* indicate successful termination */ } /* end main */ void removeSpace(char src[], char copy[], int *cnt) { } int testPalindrome( char array[], int left, int right ) { }

1099


write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.

765


write a c program to calculate sum of digits till it reduces to a single digit using recursion

1851


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

831


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

1007






write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.

2420


illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

741


hi send me sample aptitude papers of cts?

848


Write the test cases for checking a variable having value in range -10.0 to +10.0?

902


1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if

3209


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

1917


which type of aspect you want from the student.

866


what are non standard function in c

630


to find the closest pair

978


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

669