What will be the output?
#include <stdio.h>
int main(){
int c=5;
printf("%d",main||c);
return 0;
}
| #!/usr/bin/env python | |
| """ | |
| Controls: | |
| Press keys A and D to move rocket 1 | |
| Press keys H and K to move rocket 2 | |
| Press Ctrl+C to exit | |
| """ | |
| from __future__ import print_function |
(This guide is meant for beginners. If you have solved 100+ problems and are looking for guidance on how to solve problems involving algorithms and data structures, this document is not for you.)
Competitive Programming is an interesting activity which mixes problem solving with programming. It is not only enjoyable but also very demanded in placements. Competitive programming will make you very good at writing efficient programs quickly.
In this project I will add Python 3 support to Zulip, without breaking Python 2 compatibility. I will also add type annotation (see PEP 483 and PEP 484) to all code. If time is left, I will also add support for platforms other than Ubuntu 14.04.
I am pretty comfortable programming in Python (both Python 2 and 3, but mainly 3). I especially like exploring advanced features of Python. My primary software development experience is with Django. I have used Django in many of my projects. You can view a list of my projects (and more about my skills) at https://sharmaeklavya2.github.io.
| #!/bin/bash | |
| DB_NAME="$USER" | |
| DBMS_SHELL="psql" | |
| #if [ "$1" = '--help' ]; then | |
| if [[ ( "$1" == '--help' ) || ( "$1" == '-h' ) ]]; then | |
| echo "usage: $0 [DB_NAME] [DBMS_SHELL]" | |
| echo "default DB_NAME is your username" | |
| echo "default DBMS_SHELL is 'psql'" |
| #/usr/bin/env python | |
| 'Generate Time Table' | |
| from __future__ import print_function | |
| import sys | |
| import argparse | |
| from collections import defaultdict | |
| START_TIME = 8 | |
| # Time when classes start |
| <VirtualHost *:9000> | |
| WSGIDaemonProcess owliver.com python-path=/srv/owliver:/srv/owliver/myvenv3/lib/python3.4/site-packages | |
| WSGIProcessGroup owliver.com | |
| Alias /media/ /srv/owliver/media/ | |
| Alias /static/ /srv/owliver/staticfiles/ | |
| <Directory /srv/owliver/staticfiles> | |
| Require all granted | |
| </Directory> |
LOLCODE is an esoteric programming language inspired by lolcat memes on the internet. The language was created in 2007 by Adam Lindsay, researcher at Lancaster University's Computing Department.
Here I have explained basics of LOLCODE with complete examples. However, you may have questions even after reading them because I have not included all details. For an exhaustive reference, read the official documentation.
HAI 1.2
BTW This is the famous 'Hello World' program