If you are talking in strict botanical terms then corn (or maize as it is referred to in certain countries) is a FRUIT. For cooking purposes, of course, we refer to it as a vegetable. Similarly the following are also botanical fruits - squash, pumpkin, tomato, cucumber, aubergine (eggplant), and sweet peppers. Whatever they are they are all delicious!!

Botanically speaking, a fruit is a seed-bearing structure that develops from the ovary of a flowering plant, whereas vegetables are all other plant parts, such as roots, leaves and stems. By those standards, seedy outgrowths such as apples, squash and, yes, tomatoes are all fruits, while roots such as beets, potatoes and turnips, leaves such as spinach, kale and lettuce, and stems such as celery and broccoli are all vegetables.

More Info: answers.yahoo.com