ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
which one of follwoing will read a character from keyboard 
and store in c
a)c=getc()
b)c=getchar()
c)c=getchar(stdin)
d)getc(&c)
e)none
 Question Submitted By :: Preethi
I also faced this Question!!     Rank Answer Posted By  
 
  Re: which one of follwoing will read a character from keyboard and store in c a)c=getc() b)c=getchar() c)c=getchar(stdin) d)getc(&c) e)none
Answer
# 1
b id the correct option.......


c=getchar(void)


thank u
 
Is This Answer Correct ?    7 Yes 0 No
Vignesh1988i
 
  Re: which one of follwoing will read a character from keyboard and store in c a)c=getc() b)c=getchar() c)c=getchar(stdin) d)getc(&c) e)none
Answer
# 2
option b)c=getchar()
 
Is This Answer Correct ?    4 Yes 0 No
Cynthia,1st B.sc.,itm
 
 
 
  Re: which one of follwoing will read a character from keyboard and store in c a)c=getc() b)c=getchar() c)c=getchar(stdin) d)getc(&c) e)none
Answer
# 3
b)c=getc(c)
 
Is This Answer Correct ?    1 Yes 2 No
Jalal
 
  Re: which one of follwoing will read a character from keyboard and store in c a)c=getc() b)c=getchar() c)c=getchar(stdin) d)getc(&c) e)none
Answer
# 4
b

by himanshu kiims
 
Is This Answer Correct ?    3 Yes 0 No
Himanshu
 
  Re: which one of follwoing will read a character from keyboard and store in c a)c=getc() b)c=getchar() c)c=getchar(stdin) d)getc(&c) e)none
Answer
# 5
b)c=getchar()
 
Is This Answer Correct ?    0 Yes 0 No
Sagar
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
Write a c code segment using a for loop that calculates and prints the sum of the even integers from 2 to 30, inclusive?  2
write a own function to compare two strings with out using stringcomparition function? LG-Soft3
in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?  6
wite a programme in c to linear search a data using flag and without using flags? TCS3
what's the o/p int main(int n, char *argv[]) { char *s= *++argv; puts(s); exit(0); } Motorola1
#include<stdio.h> main() { char *p1; char *p2; p1=(char *) malloc(25); p2=(char *) malloc(25); strcpy(p1,"Ramco"); strcpy(p2,"Systems"); strcat(p1,p2); printf("%s",p1); } Tell me the output? Ramco5
write a program in 'c' to find the value of p[i+1]^n.p,i,n are arguments of a macro and n is a integer  1
main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); } CitiGroup4
which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma Wipro13
44.what is the difference between strcpy() and memcpy() function? 45.what is output of the following statetment? 46.Printf(“%x”, -1<<4); ? 47.will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); 48.write a string copy function routine? 49.swap two integer variables without using a third temporary variable? 50.how do you redirect stdout value from a program to a file? 51.write a program that finds the factorial of a number using recursion?  3
code snippet for creating a pyramids triangle ex 1 2 2 3 3 3  3
what is the first address that gets stored in stack according to a C or C++ compiler???? or what will be the first address that gets stored when we write a C source code???????? Apple2
Program to display given 3 integers in ascending order N-Tech1
int arr[] = {1,2,3,4} int *ptr=arr; *(arr+3) = *++ptr + *ptr++; Final contents of arr[] Hughes4
How can I make a program in c to print 'Hello' without using semicolon in the code? C-DAC5
what is the difference between <stdio.h> and "stdio.h" Kanbay5
how to copy a string without using c function  5
Print the foll in C...eg when n=5 the o/p must b + + + + + + + + + + + + + + + + +  1
why TCS selected more student in the software field from all institution. TCS3
write program on arrays GE2
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com