Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...



Code Snippets Interview Questions
Questions Answers Views Company eMail

main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); }

1 5642

main() { static char names[5][20]={"pascal","ada","cobol","fortran","perl"}; int i; char *t; t=names[3]; names[3]=names[4]; names[4]=t; for (i=0;i<=4;i++) printf("%s",names[i]); }

2 16345

void main() { int i=5; printf("%d",i++ + ++i); }

3 6925

void main() { int i=5; printf("%d",i+++++i); }

3 6964

#include main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }

1 5706

main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }

IBM,

2 12718

#define f(g,g2) g##g2 main() { int var12=100; printf("%d",f(var,12)); }

3 20076

main() { int i=0; for(;i++;printf("%d",i)) ; printf("%d",i); }

Zoho,

1 21343

#include main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); }

CNSI,

2 12427

#include main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s=malloc(sizeof(struct xx)); printf("%d",s->x); printf("%s",s->name); }

TCS,

1 9199

#include main() { struct xx { int x; struct yy { char s; struct xx *p; }; struct yy *q; }; }

2 11951

main() { extern int i; i=20; printf("%d",sizeof(i)); }

2 22950

main() { printf("%d", out); } int out=100;

3 12739

main() { extern out; printf("%d", out); } int out=100;

1 9837

main() { show(); } void show() { printf("I'm the greatest"); }

2 13543


Un-Answered Questions { Code Snippets }

Write a python program to print table of a given number?

817


I am configuring my anaconda file in linux, i want to use as kickstart file, in post installation how can i edit file or change the content of file and save it.

2298


Question 1: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date. *This Should Be Done IN C++

1167


create a stucture student containing field for roll no,class,year and marks.create 10 student annd store them in a file

2714


1.Explain what happens to a session object when the browser associated with it is closed? 2.Explain how a session object is created and used. (Note: you are not required to provide the Java statements such as ‘getAttribute’)

2519


Can we change the validator-rules.xml for our own validations in struts??

2856


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

3760


write a simple calculator c program to perform addition, subtraction, mul and div.

3728


How a web page can communicate with a web server while a user type characters in an input field.

1060


How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?

2552


What is SGML?

583


Write a python program to check if a number is an armstrong number?

777


How to use Client-side Script to Focus Controls in ASP.NET?

2969


Given a string=”me,I,myself”; .Using javascript only create an array out of this string and then send a POST request to the url “record.php” without reloading the page. The post key parameters should be n1,n2 and n3 respectively.

2982


determine which Element received an Event

2326